From 754c2bcde0ebe0f09c5da7fdbaa8bd66a0768771 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 15 Dec 2023 14:06:56 -0800 Subject: [PATCH] Fix more missed cases from #10 --- Jenkinsfile.deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.deploy b/Jenkinsfile.deploy index 86e116e..cead1df 100644 --- a/Jenkinsfile.deploy +++ b/Jenkinsfile.deploy @@ -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 @@ -93,7 +93,7 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') { # non 429 error exit 1 fi - fi + done done ''' }