Skip to content

Commit

Permalink
Fix more missed cases from #10
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Dec 15, 2023
1 parent 16d1ac3 commit 754c2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') {
""" + '''
for c in "${commands[@]}"; do
tries=3
while ! output="$( { $c; } |& tee /dev/stderr )"; then
while ! output="$( { eval "$c"; } |& tee /dev/stderr )"; do
# check to see if we hit the docker hub rate limit
if grep -q 'TOOMANYREQUESTS' <<<"$output"; then
if [ "$(( --tries ))" -le 0 ]; then
Expand All @@ -93,7 +93,7 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') {
# non 429 error
exit 1
fi
fi
done
done
'''
}
Expand Down

0 comments on commit 754c2bc

Please sign in to comment.