From 3935deda60fc33f6d647ac15d775e8a31f5b29e7 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 1 Nov 2017 07:19:52 +0100 Subject: [PATCH] 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 --- playbooks/publish/openstack-artifacts.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/publish/openstack-artifacts.yaml b/playbooks/publish/openstack-artifacts.yaml index f9d7f271d0..d0af12f5bc 100644 --- a/playbooks/publish/openstack-artifacts.yaml +++ b/playbooks/publish/openstack-artifacts.yaml @@ -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