Skip to content

Commit

Permalink
Escape dollar signs in Jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
  • Loading branch information
fipro78 committed Sep 18, 2023
1 parent ab703a0 commit d74e2ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile
Expand Up @@ -30,15 +30,15 @@ pipeline {
sh """
echo "Notarize..."
pushd $BUILD_DIR
RESPONSE=$(curl -s -X POST -F file=@${DMG} -F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize)
RESPONSE=\$(curl -s -X POST -F file=@${DMG} -F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize)
UUID=$(echo $RESPONSE | grep -Po '"uuid"\s*:\s*"\K[^"]+')
STATUS=$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
UUID=\$(echo $RESPONSE | grep -Po '"uuid"\s*:\s*"\K[^"]+')
STATUS=\$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
sleep 1m
RESPONSE=$(curl -s https://cbi.eclipse.org/macos/xcrun/${UUID}/status)
STATUS=$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
RESPONSE=\$(curl -s https://cbi.eclipse.org/macos/xcrun/${UUID}/status)
STATUS=\$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
done
if [[ ${STATUS} != 'COMPLETE' ]]; then
Expand Down

0 comments on commit d74e2ce

Please sign in to comment.