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 858B

1234567891011121314151617181920212223242526
  1. - hosts: all
  2. tasks:
  3. # Note we always create the artifacts dir so that the openstack artifacts
  4. # publishing playbook is happy.
  5. - name: Ensure artifacts directory exists
  6. file:
  7. state: directory
  8. path: '{{ zuul.executor.work_root }}/artifacts/package-afs-centos7'
  9. delegate_to: localhost
  10. # We only build an RPM if one doesn't exist for the desired version.
  11. - name: Check for built RPMs
  12. stat:
  13. path: '{{ ansible_user_dir }}/rpmbuild/RPMS/x86_64'
  14. get_checksum: false
  15. get_mime: false
  16. get_md5: false
  17. register: rpms_exist
  18. - name: Copy RPMs back for publication
  19. when: rpms_exist.stat.exists
  20. synchronize:
  21. src: '{{ ansible_user_dir }}/rpmbuild/RPMS/x86_64'
  22. dest: '{{ zuul.executor.work_root }}/artifacts/package-afs-centos7'
  23. mode: pull