Ansible job definitions for Zuul
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.

main.yaml 593B

123456789101112131415
  1. - name: Move artifacts and docs to logs dir
  2. when: zuul.change is defined
  3. delegate_to: localhost
  4. shell: |
  5. if ! $(ls {{ zuul.executor.work_root }}/{{ item }}) ; then
  6. # Only create target directory if it is needed.
  7. # Do not fail if it is already there.
  8. mkdir -p {{ zuul.executor.log_root }}/{{ item }}
  9. # Leave the original directory behind so that other roles
  10. # operating on the interface directories can simply no-op.
  11. mv -f {{ zuul.executor.work_root }}/{{ item }}/* {{ zuul.executor.log_root }}/{{ item }}
  12. fi
  13. loop:
  14. - artifacts
  15. - docs