os-autoinst-distri-rocky-mi.../scripts/cancel-build.sh

11 lines
185 B
Bash
Raw Normal View History

2022-10-15 03:50:16 +00:00
#!/bin/bash
BUILD="$1"
jobs_in_build=$(openqa-cli api jobs build="$BUILD" | jq -r '.jobs[].id' | xargs)
for id in $jobs_in_build
do
openqa-cli api -X POST "jobs/$id/cancel"
done