- name: Move artifacts and docs to logs dir when: zuul.change is defined delegate_to: localhost shell: | if [ -n "$(find {{ zuul.executor.work_root }}/{{ zj_item }} -mindepth 1)" ] ; then # Only create target directory if it is needed. # Do not fail if it is already there. mkdir -p {{ zuul.executor.log_root }}/{{ zj_item }} # Leave the original directory behind so that other roles # operating on the interface directories can simply no-op. mv -f {{ zuul.executor.work_root }}/{{ zj_item }}/* {{ zuul.executor.log_root }}/{{ zj_item }} fi loop: - artifacts - docs loop_control: loop_var: zj_item run_once: true