Reproducer script: run only on job started by zuul

The reproducer script is assuming a job was started by zuul. In some instances
we are still running jobs from platform different than zuul like ci.centos. In
those instances the log collection fails because the reproducer script creation
misses a lot of files
This patch includes that role only under the condition that zuul variable is
defined.

Change-Id: I01ec134f85943a8332832bdc6caf138d978c1c37
This commit is contained in:
Gabriele Cerami 2019-03-01 14:51:12 +00:00
parent cd6edd565a
commit 82b786ac63
1 changed files with 2 additions and 1 deletions

View File

@ -101,9 +101,10 @@
when: ansible_env.TOCI_JOBTYPE is defined
- name: Create the zuul-based reproducer script
- name: Create the zuul-based reproducer script if we are running on zuul
include_role:
name: create-zuul-based-reproducer
when: zuul is defined
- name: upload to the artifact server using pubkey auth
shell: rsync -av --quiet -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" {{ artcl_collect_dir }}/ {{ artcl_rsync_path }}/{{ lookup('env', 'BUILD_TAG') }}