jenkins: fix looping (#34645)

fix
This commit is contained in:
Maxime Desroches
2025-02-20 16:37:05 -08:00
committed by GitHub
parent 2941445849
commit 7c791ae3d9

View File

@@ -26,7 +26,7 @@ function loop() {
ALL_BUILDS=( $(curl -s $API_ROUTE/api/json | jq .builds.[].number 2> /dev/null || :) )
# Jenkins branches get deactivated after some time
BUILDABLE=$(curl -s $API_ROUTE/api/json | jq '.buildable')
BUILDABLE=$(curl -s $API_ROUTE/api/json | jq -e '.buildable' 2> /dev/null || echo "false")
if [[ ${#ALL_BUILDS[@]} -eq 0 || $BUILDABLE != "true" ]]; then
TEMP_DIR=$(mktemp -d)