File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -884,18 +884,15 @@ package-oci:
884884verify_maven_central_deployment :
885885 image : registry.ddbuild.io/images/mirror/amazon/aws-cli:2.4.29
886886 stage : publish
887- # needs: [ deploy_to_maven_central ]
887+ needs : [ deploy_to_maven_central ]
888888 rules :
889889 - if : ' $POPULATE_CACHE'
890890 when : never
891- # - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
892- # when: on_success
893- - when : manual
894- allow_failure : true
891+ - if : ' $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
892+ when : on_success
895893 script :
896894 - |
897- export VERSION=1.51.3 # hardcoded VERSION for testing (should fail)
898- # export VERSION=${CI_COMMIT_TAG##v}
895+ export VERSION=${CI_COMMIT_TAG##v}
899896 MAVEN_URL="https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
900897 echo "Checking URL: $MAVEN_URL"
901898 # Wait 30 min for the release to be available
@@ -909,13 +906,15 @@ verify_maven_central_deployment:
909906 sleep $DELAY
910907 TRY=$((TRY + 1))
911908 if [ $TRY -eq $MAX_TRIES ]; then
912- echo "The release is not available after 30 mins. Manually re-run the job to try again."
909+ echo "The release was not available after 30 mins. Manually re-run the job to try again."
913910 exit 1
914911 fi
915912 done
916913
917914publishing-gate :
918- needs : [ verify_maven_central_deployment ]
915+ needs :
916+ - job : verify_maven_central_deployment
917+ optional : true
919918 rules :
920919 - if : ' $POPULATE_CACHE'
921920 when : never
You can’t perform that action at this time.
0 commit comments