diff --git a/eclipse-distribution/org.springframework.boot.ide.product.e420/macos-notarize.sh b/eclipse-distribution/org.springframework.boot.ide.product.e420/macos-notarize.sh index eaf3bde2b..9c51a0a86 100755 --- a/eclipse-distribution/org.springframework.boot.ide.product.e420/macos-notarize.sh +++ b/eclipse-distribution/org.springframework.boot.ide.product.e420/macos-notarize.sh @@ -16,12 +16,23 @@ UUID=$(echo ${RESPONSE} | jq -r '.uuid') STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status') +echo "Status after submitting" +echo ${STATUS} + while [[ ${STATUS} == 'IN_PROGRESS' ]]; do sleep 1m RESPONSE=$(curl -s ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/status) STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status') + + echo "Waiting for status to change" + echo ${RESPONSE} + echo ${STATUS} done +echo "Status is not in progress anymore" +echo ${RESPONSE} +echo ${STATUS} + if [[ ${STATUS} != 'COMPLETE' ]]; then echo "Notarization failed: ${RESPONSE}" exit 1