From de303d10456e00f20a2648a035abfebc4546b811 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 20 Mar 2020 09:02:25 +1100 Subject: [PATCH] test-upload-logs-swift: add download script as an artifact Some time ago we merged Id91350ff1c531fd7266f3bf76681a8415941481f to test the idea of a download script; proposed in I98c80f657f38c5e1ed5f28e5d36988a3429ad1f8. However, we never actually go to either merging or abandoning the actual change in I98c80f657f38c5e1ed5f28e5d36988a3429ad1f8. This adds the download script as an artifact, which brings the testing role in-line with the latest thinking in the actual job proposed in I98c80f657f38c5e1ed5f28e5d36988a3429ad1f8. Once tested, we can then actually get reviews this time and decide to either go with this, or revert the whole thing and remove it from the testing role. Change-Id: Id1d8b04ff65a4dc567b73f22bcfb2795a3f13d7d --- roles/test-upload-logs-swift/tasks/main.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/test-upload-logs-swift/tasks/main.yaml b/roles/test-upload-logs-swift/tasks/main.yaml index 4dc6c5a9e..52e1d1551 100644 --- a/roles/test-upload-logs-swift/tasks/main.yaml +++ b/roles/test-upload-logs-swift/tasks/main.yaml @@ -22,6 +22,16 @@ when: - zuul_log_include_download_script + - name: Set download template artifact + zuul_return: + data: + zuul: + artifacts: + - name: bulk-download + url: '{{ upload_results.url }}/{{ zuul_log_download_template[:-3] }}' + when: + - zuul_log_include_download_script + - name: Upload logs to swift delegate_to: localhost zuul_swift_upload: