Ansible job definitions for OpenStack projects CI systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

post.yaml 802B

123456789101112131415161718192021222324252627282930
  1. - hosts: all
  2. roles:
  3. - fetch-tox-output
  4. post_tasks:
  5. - name: Find tarballs and wheels in dist folder.
  6. find:
  7. file_type: file
  8. paths: "src/{{ zuul.project.canonical_name }}/dist"
  9. patterns: "*.tar.gz,*.whl"
  10. register: result
  11. - name: Display stat for tarballs and wheels.
  12. stat:
  13. path: "{{ item.path }}"
  14. with_items: "{{ result.files }}"
  15. - name: Ensure artifacts directory exists.
  16. file:
  17. path: "{{ zuul.executor.work_root }}/artifacts"
  18. state: directory
  19. delegate_to: localhost
  20. - name: Collect tarball artifacts.
  21. synchronize:
  22. dest: "{{ zuul.executor.work_root }}/artifacts/"
  23. mode: pull
  24. src: "{{ item.path }}"
  25. verify_host: true
  26. with_items: "{{ result.files }}"