fix(job): fixes the post job
This corrects the ability to sync artifacts to tarballs.o.o. Change-Id: Icb2b6653f263aaab173d1479d05c0209e7390c50 Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
da81705a47
commit
738c89b342
@ -38,14 +38,26 @@
|
||||
executable: /bin/bash
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
|
||||
- name: Ensure artifact directory exists
|
||||
file:
|
||||
path: "{{ zuul.executor.work_root }}/artifacts/"
|
||||
state: directory
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Gather the artifacts
|
||||
find:
|
||||
file_type: file
|
||||
paths: "{{ zuul.project.src_dir }}"
|
||||
patterns: "*.tar.gz,*.tgz,index.yaml"
|
||||
register: result
|
||||
|
||||
- name: Update Helm repository
|
||||
synchronize:
|
||||
mode: pull
|
||||
src: "{{ zuul.project.src_dir }}"
|
||||
src: "{{ item.path }}"
|
||||
dest: "{{ zuul.executor.work_root }}/artifacts/"
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- "--include=index.yaml"
|
||||
- "--include=*.tgz"
|
||||
- "--exclude=*"
|
||||
owner: no
|
||||
group: no
|
||||
with_items: "{{ result.files }}"
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user