Starting /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ DMG_FILE=/home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg ++382+ basename /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ DMG=eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ cp /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg ++382+ echo eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg ++382+ sed s/-macosx.cocoa.x86_64.dmg//g ++382+ sed -E 's/^[0-9\-]*_(.*)/\1/g' +382+ PRIMARY_BUNDLE_ID=eclipse-rcp-2021-06-M2 +382+ retryCount=3 +382+ '[' 3 -gt 0 ']' ++382+ curl --write-out '\n%{http_code}' -s -X POST -F file=@eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg -F 'options={"primaryBundleId": "eclipse-rcp-2021-06-M2", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize +382+ RESPONSE_RAW=' 502 Bad Gateway

502 Bad Gateway


nginx
502' ++382+ head -n1 +382+ RESPONSE=' ' ++382+ tail -n1 +382+ STATUS_CODE=502 ++382+ echo ' ' ++382+ jq -r .uuid parse error: Invalid numeric literal at line 1, column 7 +382+ UUID= ++382+ echo ' ' ++382+ jq -r .notarizationStatus.status parse error: Invalid numeric literal at line 1, column 7 +382+ STATUS= +382+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 502 == \5\0\3 ]] +382+ [[ 502 == \5\0\2 ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status +382+ RESPONSE_RAW='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status 404' ++382+ head -n1 +382+ RESPONSE='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status' ++382+ tail -n1 +382+ STATUS_CODE=404 ++382+ echo RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status ++382+ jq -r .notarizationStatus.status parse error: Invalid numeric literal at line 1, column 15 +382+ STATUS= +382+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 404 == \5\0\3 ]] +382+ [[ 404 == \5\0\2 ]] +382+ [[ '' != \C\O\M\P\L\E\T\E ]] +382+ echo 'Notarization failed: RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status' Notarization failed: RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status ++382+ expr 3 - 1 +382+ retryCount=2 +382+ '[' 2 -eq 0 ']' +382+ echo Retrying... Retrying... +382+ '[' 2 -gt 0 ']' ++382+ curl --write-out '\n%{http_code}' -s -X POST -F file=@eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg -F 'options={"primaryBundleId": "eclipse-rcp-2021-06-M2", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize +382+ RESPONSE_RAW='

Application is not available

The application is currently not serving requests at this endpoint. It may not have been started or is still starting.

Possible reasons you are seeing this page:

503' ++382+ head -n1 +382+ RESPONSE=' ' ++382+ tail -n1 +382+ STATUS_CODE=503 ++382+ echo ' ' ++382+ jq -r .uuid parse error: Invalid numeric literal at line 1, column 7 +382+ UUID= ++382+ echo ' ' ++382+ jq -r .notarizationStatus.status parse error: Invalid numeric literal at line 1, column 7 +382+ STATUS= +382+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 503 == \5\0\3 ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status +382+ RESPONSE_RAW='

Application is not available

The application is currently not serving requests at this endpoint. It may not have been started or is still starting.

Possible reasons you are seeing this page:

503' ++382+ head -n1 +382+ RESPONSE=' ' ++382+ tail -n1 +382+ STATUS_CODE=503 ++382+ echo ' ' ++382+ jq -r .notarizationStatus.status parse error: Invalid numeric literal at line 1, column 7 +382+ STATUS= +382+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 503 == \5\0\3 ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status +382+ RESPONSE_RAW='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status 404' ++382+ head -n1 +382+ RESPONSE='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status' ++382+ tail -n1 +382+ STATUS_CODE=404 ++382+ echo RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status ++382+ jq -r .notarizationStatus.status parse error: Invalid numeric literal at line 1, column 15 +382+ STATUS= +382+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 404 == \5\0\3 ]] +382+ [[ 404 == \5\0\2 ]] +382+ [[ '' != \C\O\M\P\L\E\T\E ]] +382+ echo 'Notarization failed: RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status' Notarization failed: RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status ++382+ expr 2 - 1 +382+ retryCount=1 +382+ '[' 1 -eq 0 ']' +382+ echo Retrying... Retrying... +382+ '[' 1 -gt 0 ']' ++382+ curl --write-out '\n%{http_code}' -s -X POST -F file=@eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg -F 'options={"primaryBundleId": "eclipse-rcp-2021-06-M2", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++382+ jq -r .uuid +382+ UUID=52cac499-1647-48f5-9297-05ca31b7b432 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='

Application is not available

The application is currently not serving requests at this endpoint. It may not have been started or is still starting.

Possible reasons you are seeing this page:

503' ++382+ head -n1 +382+ RESPONSE=' ' ++382+ tail -n1 +382+ STATUS_CODE=503 ++382+ echo ' ' ++382+ jq -r .notarizationStatus.status parse error: Invalid numeric literal at line 1, column 7 +382+ STATUS= +382+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 503 == \5\0\3 ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading' file to Apple notarization 'service"}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading' file to Apple notarization 'service"}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File has been successfully uploaded to Apple notarization service","moreInfo":"No errors uploading '\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"IN_PROGRESS","message":"File' has been successfully uploaded to Apple notarization 'service","moreInfo":"No' errors uploading ''\''/tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg'\''."}}' ++382+ jq -r .notarizationStatus.status +382+ STATUS=IN_PROGRESS +382+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ sleep 1m ++382+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/status +382+ RESPONSE_RAW='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"COMPLETE","message":"Notarization ticket has been stapled successfully to uploaded file. You can now download the stapled file","moreInfo":"Notarization ticket has been stapled to the uploaded file successfully","log":"{\n \"logFormatVersion\": 1,\n \"jobId\": \"2a479116-365a-41b7-ad17-53bdb048e9c3\",\n \"status\": \"Accepted\",\n \"statusSummary\": \"Ready for distribution\",\n \"statusCode\": 0,\n \"archiveFilename\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg\",\n \"uploadDate\": \"2021-05-06T16:19:55Z\",\n \"sha256\": \"3e035b95adbd92b1ef07a84a68a9a29c85d6cb8daf2b76e7313c2771875302c3\",\n \"ticketContents\": [\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"94880bdc61058df2fb59c257109fd869c8e58487\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"d12ebebef8786b5a781c9c374aae008db7b582ae\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/epp.package.rcp.executable.cocoa.macosx.x86_64_4.20.0.20210506-1200/MacOS/eclipse\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"131377198f4e33c325e7699225191a6b87adbf71\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform.ide.executable.cocoa.macosx.x86_64_4.20.0.I20210429-1800/MacOS/eclipse\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"131377198f4e33c325e7699225191a6b87adbf71\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.200.v20210429-1609/eclipse_11407.so\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"626c76932dc77e0ca9d57e515a0477175ad152bb\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/MacOS/eclipse\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"d12ebebef8786b5a781c9c374aae008db7b582ae\",\n \"arch\": \"x86_64\"\n }\n ],\n \"issues\": null\n}"}} 200' ++382+ head -n1 +382+ RESPONSE='{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"COMPLETE","message":"Notarization ticket has been stapled successfully to uploaded file. You can now download the stapled file","moreInfo":"Notarization ticket has been stapled to the uploaded file successfully","log":"{\n \"logFormatVersion\": 1,\n \"jobId\": \"2a479116-365a-41b7-ad17-53bdb048e9c3\",\n \"status\": \"Accepted\",\n \"statusSummary\": \"Ready for distribution\",\n \"statusCode\": 0,\n \"archiveFilename\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg\",\n \"uploadDate\": \"2021-05-06T16:19:55Z\",\n \"sha256\": \"3e035b95adbd92b1ef07a84a68a9a29c85d6cb8daf2b76e7313c2771875302c3\",\n \"ticketContents\": [\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"94880bdc61058df2fb59c257109fd869c8e58487\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"d12ebebef8786b5a781c9c374aae008db7b582ae\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/epp.package.rcp.executable.cocoa.macosx.x86_64_4.20.0.20210506-1200/MacOS/eclipse\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"131377198f4e33c325e7699225191a6b87adbf71\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform.ide.executable.cocoa.macosx.x86_64_4.20.0.I20210429-1800/MacOS/eclipse\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"131377198f4e33c325e7699225191a6b87adbf71\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.200.v20210429-1609/eclipse_11407.so\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"626c76932dc77e0ca9d57e515a0477175ad152bb\",\n \"arch\": \"x86_64\"\n },\n {\n \"path\": \"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/MacOS/eclipse\",\n \"digestAlgorithm\": \"SHA-256\",\n \"cdhash\": \"d12ebebef8786b5a781c9c374aae008db7b582ae\",\n \"arch\": \"x86_64\"\n }\n ],\n \"issues\": null\n}"}}' ++382+ tail -n1 +382+ STATUS_CODE=200 ++382+ jq -r .notarizationStatus.status ++382+ echo '{"uuid":"52cac499-1647-48f5-9297-05ca31b7b432","notarizationStatus":{"status":"COMPLETE","message":"Notarization' ticket has been stapled successfully to uploaded file. You can now download the stapled 'file","moreInfo":"Notarization' ticket has been stapled to the uploaded file 'successfully","log":"{\n' '\"logFormatVersion\":' '1,\n' '\"jobId\":' '\"2a479116-365a-41b7-ad17-53bdb048e9c3\",\n' '\"status\":' '\"Accepted\",\n' '\"statusSummary\":' '\"Ready' for 'distribution\",\n' '\"statusCode\":' '0,\n' '\"archiveFilename\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg\",\n' '\"uploadDate\":' '\"2021-05-06T16:19:55Z\",\n' '\"sha256\":' '\"3e035b95adbd92b1ef07a84a68a9a29c85d6cb8daf2b76e7313c2771875302c3\",\n' '\"ticketContents\":' '[\n' '{\n' '\"path\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg\",\n' '\"digestAlgorithm\":' '\"SHA-256\",\n' '\"cdhash\":' '\"94880bdc61058df2fb59c257109fd869c8e58487\"\n' '},\n' '{\n' '\"path\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app\",\n' '\"digestAlgorithm\":' '\"SHA-256\",\n' '\"cdhash\":' '\"d12ebebef8786b5a781c9c374aae008db7b582ae\",\n' '\"arch\":' '\"x86_64\"\n' '},\n' '{\n' '\"path\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/epp.package.rcp.executable.cocoa.macosx.x86_64_4.20.0.20210506-1200/MacOS/eclipse\",\n' '\"digestAlgorithm\":' '\"SHA-256\",\n' '\"cdhash\":' '\"131377198f4e33c325e7699225191a6b87adbf71\",\n' '\"arch\":' '\"x86_64\"\n' '},\n' '{\n' '\"path\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform.ide.executable.cocoa.macosx.x86_64_4.20.0.I20210429-1800/MacOS/eclipse\",\n' '\"digestAlgorithm\":' '\"SHA-256\",\n' '\"cdhash\":' '\"131377198f4e33c325e7699225191a6b87adbf71\",\n' '\"arch\":' '\"x86_64\"\n' '},\n' '{\n' '\"path\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.200.v20210429-1609/eclipse_11407.so\",\n' '\"digestAlgorithm\":' '\"SHA-256\",\n' '\"cdhash\":' '\"626c76932dc77e0ca9d57e515a0477175ad152bb\",\n' '\"arch\":' '\"x86_64\"\n' '},\n' '{\n' '\"path\":' '\"eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64-5034909271434549490.dmg/Eclipse.app/Contents/MacOS/eclipse\",\n' '\"digestAlgorithm\":' '\"SHA-256\",\n' '\"cdhash\":' '\"d12ebebef8786b5a781c9c374aae008db7b582ae\",\n' '\"arch\":' '\"x86_64\"\n' '}\n' '],\n' '\"issues\":' 'null\n}"}}' +382+ STATUS=COMPLETE +382+ [[ COMPLETE == \I\N\_\P\R\O\G\R\E\S\S ]] +382+ [[ 200 == \5\0\3 ]] +382+ [[ 200 == \5\0\2 ]] +382+ [[ COMPLETE != \C\O\M\P\L\E\T\E ]] +382+ break +382+ rm eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ curl -JO https://cbi.eclipse.org/macos/xcrun/52cac499-1647-48f5-9297-05ca31b7b432/download % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 17.2M 0 17.2M 0 0 18.2M 0 --:--:-- --:--:-- --:--:-- 18.1M 100 40.2M 0 40.2M 0 0 20.6M 0 --:--:-- 0:00:01 --:--:-- 20.6M 100 56.4M 0 56.4M 0 0 19.0M 0 --:--:-- 0:00:02 --:--:-- 19.0M 100 86.7M 0 86.7M 0 0 21.9M 0 --:--:-- 0:00:03 --:--:-- 21.9M 100 106M 0 106M 0 0 21.5M 0 --:--:-- 0:00:04 --:--:-- 21.5M 100 117M 0 117M 0 0 19.7M 0 --:--:-- 0:00:05 --:--:-- 20.0M 100 137M 0 137M 0 0 19.8M 0 --:--:-- 0:00:06 --:--:-- 19.5M 100 156M 0 156M 0 0 19.6M 0 --:--:-- 0:00:07 --:--:-- 20.0M 100 170M 0 170M 0 0 19.0M 0 --:--:-- 0:00:08 --:--:-- 16.8M 100 197M 0 197M 0 0 19.8M 0 --:--:-- 0:00:09 --:--:-- 18.1M 100 212M 0 212M 0 0 19.3M 0 --:--:-- 0:00:10 --:--:-- 18.9M 100 241M 0 241M 0 0 20.1M 0 --:--:-- 0:00:11 --:--:-- 20.6M 100 260M 0 260M 0 0 20.0M 0 --:--:-- 0:00:12 --:--:-- 20.7M 100 272M 0 272M 0 0 19.3M 0 --:--:-- 0:00:14 --:--:-- 19.7M 100 285M 0 285M 0 0 19.1M 0 --:--:-- 0:00:14 --:--:-- 17.6M 100 300M 0 300M 0 0 18.8M 0 --:--:-- 0:00:15 --:--:-- 17.5M 100 320M 0 320M 0 0 18.8M 0 --:--:-- 0:00:16 --:--:-- 15.8M 100 322M 0 322M 0 0 18.9M 0 --:--:-- 0:00:17 --:--:-- 15.2M curl: Saved to filename 'eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg' +382+ cp -vf eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg 'eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg' -> '/home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg' ++382+ dirname /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ d=/home/jenkins/agent/workspace/notarize-downloads/temp ++382+ basename /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ b=eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ cd /home/jenkins/agent/workspace/notarize-downloads/temp +382+ md5sum eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ sha1sum eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ sha512sum -b eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +382+ rm eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize +382+ rm -f eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize.md5 +382+ rm -f eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize.sha1 +382+ rm -f eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize.sha512