From 2d5026da096d6d1341088a28dfa2af3602a8c052 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 3 Feb 2022 16:10:56 +0100 Subject: [PATCH] CI: properly publish artifacts for the upgrade job Change-Id: Ia04126c39ab52816f0b89b89ae7a275d57011df1 --- playbooks/ci/post.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/playbooks/ci/post.yaml b/playbooks/ci/post.yaml index 59a95112e..b563195ce 100644 --- a/playbooks/ci/post.yaml +++ b/playbooks/ci/post.yaml @@ -20,3 +20,15 @@ artifacts: - name: Bifrost log url: 'logs/bifrost.log' + when: '"upgrade" not in zuul.job' + + - name: Store bifrost upgrade log as a Zuul artifact + zuul_return: + data: + zuul: + artifacts: + - name: Bifrost log (before upgrade) + url: 'logs/bifrost-old.log' + - name: Bifrost log (after upgrade) + url: 'logs/bifrost-new.log' + when: '"upgrade" in zuul.job'