Skip to content
Snippets Groups Projects
Commit 890daf48 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 372bd1a7
No related branches found
No related tags found
1 merge request!257ci: reorganize SQUAD groups and projects
...@@ -136,7 +136,9 @@ ...@@ -136,7 +136,9 @@
# report job is successful or not. # 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')" 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 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\ndevice: %s\nurl: %s\nstatus: %s\n' \
| tee job_status.txt
if grep -qi "incomplete" job_status.txt; then if grep -qi "incomplete" job_status.txt; then
echo "ERROR: Incomplete test job reported: exit code 1" echo "ERROR: Incomplete test job reported: exit code 1"
exit 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