3d04e2b6b5
Change-Id: Ida1c3ad5b4d744d3eaf2e21a6facda9ff76bf28a
28 lines
873 B
YAML
28 lines
873 B
YAML
- name: Rename tarball for uploading
|
|
shell: |
|
|
mkdir -p {{ zuul_output_dir }}/artifacts
|
|
cp *.tgz {{ zuul_output_dir }}/artifacts/{{ zuul.project.short_name }}-{{ project_ver }}.tar.gz
|
|
cp *.tgz {{ zuul_output_dir }}/artifacts/{{ zuul.project.short_name }}-latest.tar.gz
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|
|
tags:
|
|
# Ignore ANSIBLE0007: No need to use file module instead of mkdir
|
|
- skip_ansible_lint
|
|
|
|
- block:
|
|
- name: Ensure artifacts directory exists
|
|
file:
|
|
path: "{{ zuul.executor.work_root }}/artifacts"
|
|
state: directory
|
|
delegate_to: localhost
|
|
|
|
- name: Collect artifacts
|
|
synchronize:
|
|
dest: "{{ zuul.executor.work_root }}/artifacts/"
|
|
mode: pull
|
|
src: "{{ zuul_output_dir }}/artifacts/"
|
|
verify_host: true
|
|
owner: no
|
|
group: no
|
|
when: not zuul_use_fetch_output
|