Starting /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg
+355+ DMG_FILE=/home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg
++355+ basename /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg
+355+ DMG=eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg
+355+ cp /home/jenkins/agent/workspace/notarize-downloads/temp/eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg-tonotarize eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg
++355+ echo eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg
++355+ sed s/-macosx.cocoa.x86_64.dmg//g
++355+ sed -E 's/^[0-9\-]*_(.*)/\1/g'
+355+ PRIMARY_BUNDLE_ID=eclipse-php-2021-06-M2
+355+ retryCount=3
+355+ '[' 3 -gt 0 ']'
++355+ curl --write-out '\n%{http_code}' -s -X POST -F file=@eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg -F 'options={"primaryBundleId": "eclipse-php-2021-06-M2", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize
+355+ 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:
-
The host doesn'\''t exist.
Make sure the hostname was typed correctly and that a route matching this hostname exists.
-
The host exists, but doesn'\''t have a matching path.
Check if the URL path was typed correctly and that the route was created using the desired path.
-
Route and path matches, but all pods are down.
Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
503'
++355+ head -n1
+355+ RESPONSE='
'
++355+ tail -n1
+355+ STATUS_CODE=503
++355+ echo '
'
++355+ jq -r .uuid
parse error: Invalid numeric literal at line 1, column 7
+355+ UUID=
++355+ echo '
'
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 7
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 503 == \5\0\3 ]]
+355+ sleep 1m
++355+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status
+355+ RESPONSE_RAW='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status
404'
++355+ head -n1
+355+ RESPONSE='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status'
++355+ tail -n1
+355+ STATUS_CODE=404
++355+ echo RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 15
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 404 == \5\0\3 ]]
+355+ [[ 404 == \5\0\2 ]]
+355+ [[ '' != \C\O\M\P\L\E\T\E ]]
+355+ 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
++355+ expr 3 - 1
+355+ retryCount=2
+355+ '[' 2 -eq 0 ']'
+355+ echo Retrying...
Retrying...
+355+ '[' 2 -gt 0 ']'
++355+ curl --write-out '\n%{http_code}' -s -X POST -F file=@eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg -F 'options={"primaryBundleId": "eclipse-php-2021-06-M2", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize
+355+ RESPONSE_RAW='
502 Bad Gateway
502 Bad Gateway
nginx
502'
++355+ head -n1
+355+ RESPONSE='
'
++355+ tail -n1
+355+ STATUS_CODE=502
++355+ echo '
'
++355+ jq -r .uuid
parse error: Invalid numeric literal at line 1, column 7
+355+ UUID=
++355+ echo '
'
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 7
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 502 == \5\0\3 ]]
+355+ [[ 502 == \5\0\2 ]]
+355+ sleep 1m
++355+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status
+355+ 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:
-
The host doesn'\''t exist.
Make sure the hostname was typed correctly and that a route matching this hostname exists.
-
The host exists, but doesn'\''t have a matching path.
Check if the URL path was typed correctly and that the route was created using the desired path.
-
Route and path matches, but all pods are down.
Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
503'
++355+ head -n1
+355+ RESPONSE='
'
++355+ tail -n1
+355+ STATUS_CODE=503
++355+ echo '
'
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 7
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 503 == \5\0\3 ]]
+355+ sleep 1m
++355+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status
+355+ 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:
-
The host doesn'\''t exist.
Make sure the hostname was typed correctly and that a route matching this hostname exists.
-
The host exists, but doesn'\''t have a matching path.
Check if the URL path was typed correctly and that the route was created using the desired path.
-
Route and path matches, but all pods are down.
Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
503'
++355+ head -n1
+355+ RESPONSE='
'
++355+ tail -n1
+355+ STATUS_CODE=503
++355+ echo '
'
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 7
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 503 == \5\0\3 ]]
+355+ sleep 1m
++355+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status
+355+ RESPONSE_RAW='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status
404'
++355+ head -n1
+355+ RESPONSE='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status'
++355+ tail -n1
+355+ STATUS_CODE=404
++355+ echo RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 15
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 404 == \5\0\3 ]]
+355+ [[ 404 == \5\0\2 ]]
+355+ [[ '' != \C\O\M\P\L\E\T\E ]]
+355+ 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
++355+ expr 2 - 1
+355+ retryCount=1
+355+ '[' 1 -eq 0 ']'
+355+ echo Retrying...
Retrying...
+355+ '[' 1 -gt 0 ']'
++355+ curl --write-out '\n%{http_code}' -s -X POST -F file=@eclipse-php-2021-06-M2-macosx-cocoa-x86_64.dmg -F 'options={"primaryBundleId": "eclipse-php-2021-06-M2", "staple": true};type=application/json' https://cbi.eclipse.org/macos/xcrun/notarize
+355+ RESPONSE_RAW='
502 Bad Gateway
502 Bad Gateway
nginx
502'
++355+ head -n1
+355+ RESPONSE='
'
++355+ tail -n1
+355+ STATUS_CODE=502
++355+ echo '
'
++355+ jq -r .uuid
parse error: Invalid numeric literal at line 1, column 7
+355+ UUID=
++355+ echo '
'
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 7
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 502 == \5\0\3 ]]
+355+ [[ 502 == \5\0\2 ]]
+355+ sleep 1m
++355+ curl --write-out '\n%{http_code}' -s https://cbi.eclipse.org/macos/xcrun//status
+355+ RESPONSE_RAW='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status
404'
++355+ head -n1
+355+ RESPONSE='RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status'
++355+ tail -n1
+355+ STATUS_CODE=404
++355+ echo RESTEASY003210: Could not find resource for full path: http://cbi.eclipse.org/macos-notarization-service//status
++355+ jq -r .notarizationStatus.status
parse error: Invalid numeric literal at line 1, column 15
+355+ STATUS=
+355+ [[ '' == \I\N\_\P\R\O\G\R\E\S\S ]]
+355+ [[ 404 == \5\0\3 ]]
+355+ [[ 404 == \5\0\2 ]]
+355+ [[ '' != \C\O\M\P\L\E\T\E ]]
+355+ 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
++355+ expr 1 - 1
+355+ retryCount=0
+355+ '[' 0 -eq 0 ']'
+355+ echo 'Notarization failed 3 times. Exiting'
Notarization failed 3 times. Exiting
+355+ exit 1