Upload artifacts only on success

We should not upload tarballs etc in case of job failures, only update
if job was successful.

Change-Id: I3f1abbf4e920b5d2526b79e40097b7a0d2053273
This commit is contained in:
Andreas Jaeger 2017-11-01 07:19:52 +01:00
parent d89d62a5e1
commit 3935deda60

View File

@ -1,8 +1,10 @@
- hosts: localhost
roles:
- add-fileserver
- role: add-fileserver
when: zuul_success | bool
- hosts: "{{ fileserver.fqdn }}"
gather_facts: False
roles:
- publish-artifacts-to-fileserver
- role: publish-artifacts-to-fileserver
when: zuul_success | bool