From 7e2046cc24b2c2043569a010558c926f888ea7a9 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Mon, 17 Aug 2020 14:20:18 -0400 Subject: Bug 565989: Improve macosx notarization error handling Change-Id: I6ba12644ac63a8615e0da3ffc9f553074d925291 --- releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh | 8 ++++---- 1 file 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 -- cgit v1.2.3