Skip to content
Snippets Groups Projects

ci: reorganize SQUAD groups and projects

Merged Chase Qi requested to merge (removed):reorg-squad-projects into kirkstone
All threads resolved!
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading