diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml index 4765367b01b1a7b185490f5806f3a6f05225a666..d1ec6b252119a329352f380a02255ef5f837c753 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\ndevice: %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