os-autoinst-distri-rocky/scripts/cancel-build.sh
2022-10-16 09:28:24 -05:00

11 lines
185 B
Bash
Executable File

#!/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