Skip to content

Commit 7c791ae

Browse files
jenkins: fix looping (commaai#34645)
fix
1 parent 2941445 commit 7c791ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/jenkins_loop_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function loop() {
2626
ALL_BUILDS=( $(curl -s $API_ROUTE/api/json | jq .builds.[].number 2> /dev/null || :) )
2727

2828
# Jenkins branches get deactivated after some time
29-
BUILDABLE=$(curl -s $API_ROUTE/api/json | jq '.buildable')
29+
BUILDABLE=$(curl -s $API_ROUTE/api/json | jq -e '.buildable' 2> /dev/null || echo "false")
3030

3131
if [[ ${#ALL_BUILDS[@]} -eq 0 || $BUILDABLE != "true" ]]; then
3232
TEMP_DIR=$(mktemp -d)

0 commit comments

Comments
 (0)