4c121fe599
publish-openstack-python-branch-tarball is a trusted job now. The majority of this log comes from openstack-zuul-jobs. Change-Id: Ie50b45296074b12cd17229bdd2bb57c0d40290ec Depends-On: Ie577aa1c603158b1a71f8107113de51bddc1a771 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
- hosts: all
|
|
roles:
|
|
- fetch-tox-output
|
|
|
|
post_tasks:
|
|
- name: Rename files to branch specific name
|
|
shell: "mv *.{{ item }} {{ zuul.project.short_name }}-{{ zuul.branch | replace('/', '-') }}.{{ item }}"
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|
|
with_items:
|
|
- "tar.gz"
|
|
- "whl"
|
|
|
|
- name: Find tarballs and wheels in dist folder
|
|
find:
|
|
file_type: file
|
|
paths: "src/{{ zuul.project.canonical_name }}/dist"
|
|
patterns: "*.tar.gz,*.whl"
|
|
register: result
|
|
|
|
- name: Display stat for tarballs and wheels
|
|
stat:
|
|
path: "{{ item.path }}"
|
|
with_items: "{{ result.files }}"
|
|
|
|
- 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: "{{ item.path }}"
|
|
verify_host: true
|
|
with_items: "{{ result.files }}"
|