Skip to content

Commit

Permalink
Fix tiny edge case in #10 where $ was getting interpolated by Groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Dec 15, 2023
1 parent 21eba83 commit 16d1ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -94,7 +95,7 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') {
fi
fi
done
"""
'''
}
}
} }

0 comments on commit 16d1ac3

Please sign in to comment.