Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2020-08-17 18:20:18 +0000
committerJonah Graham2020-08-17 18:20:18 +0000
commit7e2046cc24b2c2043569a010558c926f888ea7a9 (patch)
tree51a54017fdb538e65e8a5fd17a4a302cce04ef1f
parent5c3822d38ff766b7e0b741180d1bc8b802b2cc32 (diff)
downloadorg.eclipse.epp.packages-7e2046cc24b2c2043569a010558c926f888ea7a9.tar.gz
org.eclipse.epp.packages-7e2046cc24b2c2043569a010558c926f888ea7a9.tar.xz
org.eclipse.epp.packages-7e2046cc24b2c2043569a010558c926f888ea7a9.zip
Bug 565989: Improve macosx notarization error handling
-rwxr-xr-xreleng/org.eclipse.epp.config/tools/macosx-notarization-single.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh
index 39ac6998..92b3a2ce 100755
--- a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh
+++ b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh
@@ -29,16 +29,16 @@ retryCount=3
while [ ${retryCount} -gt 0 ]; do
RESPONSE_RAW=$(curl --write-out "%{http_code}" -s -X POST -F file=@${DMG} -F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' http://172.30.206.146:8383/macos-notarization-service/notarize)
- RESPONSE=$(head -n1 <<<"${RAW_RESPONSE}")
- STATUS_CODE=$(tail -n1 <<<"${RAW_RESPONSE}")
+ RESPONSE=$(head -n1 <<<"${RESPONSE_RAW}")
+ STATUS_CODE=$(tail -n1 <<<"${RESPONSE_RAW}")
UUID="$(echo "${RESPONSE}" | jq -r '.uuid')"
STATUS="$(echo "${RESPONSE}" | jq -r '.notarizationStatus.status')"
while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
sleep 1m
RESPONSE_RAW=$(curl --write-out "%{http_code}" -s http://172.30.206.146:8383/macos-notarization-service/${UUID}/status)
- RESPONSE=$(head -n1 <<<"${RAW_RESPONSE}")
- STATUS_CODE=$(tail -n1 <<<"${RAW_RESPONSE}")
+ RESPONSE=$(head -n1 <<<"${RESPONSE_RAW}")
+ STATUS_CODE=$(tail -n1 <<<"${RESPONSE_RAW}")
STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status')
done

Back to the top