Skip to content
Snippets Groups Projects
Commit 3ea12df7 authored by Chase Qi's avatar Chase Qi
Browse files

.oniro-ci: print test job and device name in lava-report


Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent d5aa34ed
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !257. Comments created here will be created in the context of that merge request.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment