jenkins: fix looping (#34645)

fix
pull/34646/head
Maxime Desroches 2 months ago committed by GitHub
parent 2941445849
commit 7c791ae3d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      scripts/jenkins_loop_test.sh

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

Loading…
Cancel
Save