From 10fb6b1828de63068e6a375a0624b543bb756af0 Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Jul 21 2021 10:35:38 +0000 Subject: roles/testing-farm-run-test: add Testing Farm Artifacts Provide Testing Farm artifacts URL as a Zuul artifact. Signed-off-by: Miroslav Vadkerti --- diff --git a/roles/testing-farm-run-test/tasks/main.yml b/roles/testing-farm-run-test/tasks/main.yml index c000982..5548f4e 100644 --- a/roles/testing-farm-run-test/tasks/main.yml +++ b/roles/testing-farm-run-test/tasks/main.yml @@ -64,6 +64,14 @@ fail: msg="Testing has timed out in 12 hours" when: response.json.result.overall is undefined or response.json.state == "running" or response.json.state == "queued" +- name: Return Testing Farm artifacts URL + zuul_return: + data: + zuul: + artifacts: + - name: Testing Farm Artifacts + url: "http://artifacts.dev.testing-farm.io/{{ id.json.id }}" + - name: Check the result for error fail: msg="Testing Farm failed to finish the test process" when: response.json.state == "error"