From 3ea12df7550091579177776f43470096eee7f893 Mon Sep 17 00:00:00 2001 From: Chase Qi <chase.qi@linaro.org> Date: Fri, 12 Aug 2022 14:31:13 +0800 Subject: [PATCH] .oniro-ci: print test job and device name in lava-report Signed-off-by: Chase Qi <chase.qi@linaro.org> --- .oniro-ci/test-generic.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml index 5041db7c..e2a48e20 100644 --- a/.oniro-ci/test-generic.yaml +++ b/.oniro-ci/test-generic.yaml @@ -136,7 +136,9 @@ # report job is successful or not. squad_build_id="$(curl --silent "$CI_SQUAD_INSTANCE/api/builds/?version=$CI_PIPELINE_ID" | jq -r '.results[0].id')" curl --silent "$CI_SQUAD_INSTANCE/api/builds/$squad_build_id/testjobs/" > test_jobs.json - jq -r '.results | .[] | .external_url, .job_status' test_jobs.json | tee job_status.txt + jq -r '.results | .[] | .name, .environment, .external_url, .job_status | @sh' test_jobs.json \ + | xargs printf '------------\nname: %s\nenvironment: %s\nurl: %s\nstatus: %s\n' + | tee job_status.txt if grep -qi "incomplete" job_status.txt; then echo "ERROR: Incomplete test job reported: exit code 1" exit 1 -- GitLab