zuul-jobs/playbooks/python/tarball-post.yaml
Monty Taylor c36d95b4ba
Rename tox/tarball-post to python/tarball-post
The actions of the playbook don't really have anything to do with tox.
Tarballs go into dist/ whether tox is used or not.

Change-Id: I49d9efaf34644c47df0a1acb6ca108fe4ec99fa4
2017-08-22 16:09:02 -04:00

22 lines
593 B
YAML

- hosts: all
tasks:
- 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: Collect tarball artifacts.
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts"
mode: pull
src: "{{ item.path }}"
verify_host: true
with_items: "{{ result.files }}"