diff options
author | Jonah Graham | 2021-05-02 01:08:38 +0000 |
---|---|---|
committer | Jonah Graham | 2021-05-02 01:08:38 +0000 |
commit | 022e8b9469d2a9a312454c65402c53d9bf7e0555 (patch) | |
tree | a51bb9aabf898f98586e55f703fd385342f4ac22 /releng/org.eclipse.epp.config/tools | |
parent | bdefeaf8b8a6c4257f4801c9d5a46c785325e5dc (diff) | |
download | org.eclipse.epp.packages-022e8b9469d2a9a312454c65402c53d9bf7e0555.tar.gz org.eclipse.epp.packages-022e8b9469d2a9a312454c65402c53d9bf7e0555.tar.xz org.eclipse.epp.packages-022e8b9469d2a9a312454c65402c53d9bf7e0555.zip |
Bug 571669: Try to curl again on 503/502 http code in macOS notarize
Change-Id: I839928b3d2e659aaff3445118ab5ccf7af670683
Diffstat (limited to 'releng/org.eclipse.epp.config/tools')
-rwxr-xr-x | releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh | 2 |
1 files changed, 1 insertions, 1 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 4c44a1bb..6a867ff9 100755 --- a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh +++ b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh @@ -34,7 +34,7 @@ while [ ${retryCount} -gt 0 ]; do UUID="$(echo "${RESPONSE}" | jq -r '.uuid')" STATUS="$(echo "${RESPONSE}" | jq -r '.notarizationStatus.status')" - while [[ ${STATUS} == 'IN_PROGRESS' ]]; do + while [[ ${STATUS} == 'IN_PROGRESS' || ${STATUS_CODE} == '503' || ${STATUS_CODE} == '502' ]]; do sleep 1m RESPONSE_RAW=$(curl --write-out "\n%{http_code}" -s https://cbi.eclipse.org/macos/xcrun/${UUID}/status) RESPONSE=$(head -n1 <<<"${RESPONSE_RAW}") |