diff --git a/roles/test-upload-logs-swift/tasks/main.yaml b/roles/test-upload-logs-swift/tasks/main.yaml index 52e1d1551..320483989 100644 --- a/roles/test-upload-logs-swift/tasks/main.yaml +++ b/roles/test-upload-logs-swift/tasks/main.yaml @@ -22,16 +22,6 @@ 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: @@ -47,6 +37,16 @@ download_template: "{{ download_template | default(omit) }}" register: upload_results + - 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: Return log URL to Zuul delegate_to: localhost zuul_return: