Starting /home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ DMG_FILE=/home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg ++380+ basename /home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ DMG=eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ cp /home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg ++380+ echo eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg ++380+ sed s/-macosx.cocoa.x86_64.dmg//g ++380+ sed -E 's/^[0-9\-]*_(.*)/\1/g' +380+ PRIMARY_BUNDLE_ID=eclipse-rcp-2021-06-M2 +380+ retryCount=3 +380+ '[' 3 -gt 0 ']' ++380+ 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 +380+ RESPONSE_RAW='{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}} 200' ++380+ head -n1 +380+ RESPONSE='{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++380+ tail -n1 +380+ STATUS_CODE=200 ++380+ echo '{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++380+ jq -r .uuid +380+ UUID=62c50531-ebfa-41db-a57d-b5e58f6bafd1 ++380+ echo '{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","notarizationStatus":{"status":"IN_PROGRESS","message":"Uploading file to Apple notarization service"}}' ++380+ jq -r .notarizationStatus.status +380+ STATUS=IN_PROGRESS +380+ [[ IN_PROGRESS == \I\N\_\P\R\O\G\R\E\S\S ]] +380+ sleep 1m ++380+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun/62c50531-ebfa-41db-a57d-b5e58f6bafd1/status +380+ RESPONSE_RAW='{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","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' ++380+ head -n1 +380+ RESPONSE='{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","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}"}}' ++380+ tail -n1 +380+ STATUS_CODE=200 ++380+ jq -r .notarizationStatus.status ++380+ echo '{"uuid":"62c50531-ebfa-41db-a57d-b5e58f6bafd1","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}"}}' +380+ STATUS=COMPLETE +380+ [[ COMPLETE == \I\N\_\P\R\O\G\R\E\S\S ]] +380+ [[ 200 == \5\0\3 ]] +380+ [[ 200 == \5\0\2 ]] +380+ [[ COMPLETE != \C\O\M\P\L\E\T\E ]] +380+ break +380+ rm eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ curl -JO https://cbi.eclipse.org/macos/xcrun/62c50531-ebfa-41db-a57d-b5e58f6bafd1/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 8195k 0 8195k 0 0 10.0M 0 --:--:-- --:--:-- --:--:-- 10.0M 100 22.8M 0 22.8M 0 0 12.7M 0 --:--:-- 0:00:01 --:--:-- 12.7M 100 36.9M 0 36.9M 0 0 12.4M 0 --:--:-- 0:00:02 --:--:-- 12.4M 100 52.7M 0 52.7M 0 0 13.3M 0 --:--:-- 0:00:03 --:--:-- 13.3M 100 53.7M 0 53.7M 0 0 10.8M 0 --:--:-- 0:00:04 --:--:-- 10.8M 100 64.7M 0 64.7M 0 0 11.1M 0 --:--:-- 0:00:05 --:--:-- 11.3M 100 81.7M 0 81.7M 0 0 12.0M 0 --:--:-- 0:00:06 --:--:-- 11.7M 100 91.2M 0 91.2M 0 0 11.7M 0 --:--:-- 0:00:07 --:--:-- 11.2M 100 106M 0 106M 0 0 12.0M 0 --:--:-- 0:00:08 --:--:-- 11.0M 100 111M 0 111M 0 0 11.2M 0 --:--:-- 0:00:09 --:--:-- 11.5M 100 117M 0 117M 0 0 10.9M 0 --:--:-- 0:00:10 --:--:-- 10.6M 100 122M 0 122M 0 0 10.4M 0 --:--:-- 0:00:11 --:--:-- 8371k 100 136M 0 136M 0 0 10.4M 0 --:--:-- 0:00:12 --:--:-- 8852k 100 153M 0 153M 0 0 11.0M 0 --:--:-- 0:00:13 --:--:-- 9578k 100 168M 0 168M 0 0 11.3M 0 --:--:-- 0:00:14 --:--:-- 11.6M 100 173M 0 173M 0 0 10.9M 0 --:--:-- 0:00:15 --:--:-- 10.9M 100 179M 0 179M 0 0 10.7M 0 --:--:-- 0:00:16 --:--:-- 11.4M 100 191M 0 191M 0 0 10.6M 0 --:--:-- 0:00:18 --:--:-- 10.9M 100 205M 0 205M 0 0 10.9M 0 --:--:-- 0:00:18 --:--:-- 10.4M 100 212M 0 212M 0 0 10.7M 0 --:--:-- 0:00:19 --:--:-- 9031k 100 218M 0 218M 0 0 10.5M 0 --:--:-- 0:00:20 --:--:-- 9394k 100 229M 0 229M 0 0 10.5M 0 --:--:-- 0:00:21 --:--:-- 9.8M 100 239M 0 239M 0 0 10.5M 0 --:--:-- 0:00:22 --:--:-- 10.1M 100 253M 0 253M 0 0 10.6M 0 --:--:-- 0:00:23 --:--:-- 9897k 100 266M 0 266M 0 0 10.7M 0 --:--:-- 0:00:24 --:--:-- 10.8M 100 281M 0 281M 0 0 10.9M 0 --:--:-- 0:00:25 --:--:-- 12.5M 100 298M 0 298M 0 0 11.1M 0 --:--:-- 0:00:26 --:--:-- 13.8M 100 320M 0 320M 0 0 11.5M 0 --:--:-- 0:00:27 --:--:-- 16.1M 100 322M 0 322M 0 0 11.5M 0 --:--:-- 0:00:27 --:--:-- 16.8M curl: Saved to filename 'eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg' +380+ cp -vf eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg /home/jenkins/agent/workspace/notarize-downloads-bug-571369/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-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg' ++380+ dirname /home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ d=/home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp ++380+ basename /home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp/eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ b=eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ cd /home/jenkins/agent/workspace/notarize-downloads-bug-571369/temp +380+ md5sum eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ sha1sum eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ sha512sum -b eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg +380+ rm eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize +380+ rm -f eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize.md5 +380+ rm -f eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize.sha1 +380+ rm -f eclipse-rcp-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize.sha512