From 16d1ac32d2873decc13d303219c27fc2e3dd3aea Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 15 Dec 2023 14:03:28 -0800 Subject: [PATCH] Fix tiny edge case in #10 where $ was getting interpolated by Groovy --- Jenkinsfile.deploy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.deploy b/Jenkinsfile.deploy index d15bb8f..86e116e 100644 --- a/Jenkinsfile.deploy +++ b/Jenkinsfile.deploy @@ -77,6 +77,7 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') { set -Eeuo pipefail commands=( ${ shell } ) + """ + ''' for c in "${commands[@]}"; do tries=3 while ! output="$( { $c; } |& tee /dev/stderr )"; then @@ -94,7 +95,7 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') { fi fi done - """ + ''' } } } }