We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2941445 commit 7c791aeCopy full SHA for 7c791ae
scripts/jenkins_loop_test.sh
@@ -26,7 +26,7 @@ function loop() {
26
ALL_BUILDS=( $(curl -s $API_ROUTE/api/json | jq .builds.[].number 2> /dev/null || :) )
27
28
# Jenkins branches get deactivated after some time
29
- BUILDABLE=$(curl -s $API_ROUTE/api/json | jq '.buildable')
+ BUILDABLE=$(curl -s $API_ROUTE/api/json | jq -e '.buildable' 2> /dev/null || echo "false")
30
31
if [[ ${#ALL_BUILDS[@]} -eq 0 || $BUILDABLE != "true" ]]; then
32
TEMP_DIR=$(mktemp -d)
0 commit comments