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 @@ -885,18 +885,15 @@ package-oci:
885885verify_maven_central_deployment :
886886 image : registry.ddbuild.io/images/mirror/amazon/aws-cli:2.4.29
887887 stage : publish
888- # needs: [ deploy_to_maven_central ]
888+ needs : [ deploy_to_maven_central ]
889889 rules :
890890 - if : ' $POPULATE_CACHE'
891891 when : never
892- # - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
893- # when: on_success
894- - when : manual
895- allow_failure : true
892+ - if : ' $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
893+ when : on_success
896894 script :
897895 - |
898- export VERSION=1.51.3 # hardcoded VERSION for testing (should fail)
899- # export VERSION=${CI_COMMIT_TAG##v}
896+ export VERSION=${CI_COMMIT_TAG##v}
900897 MAVEN_URL="https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
901898 echo "Checking URL: $MAVEN_URL"
902899 # Wait 30 min for the release to be available
@@ -910,13 +907,15 @@ verify_maven_central_deployment:
910907 sleep $DELAY
911908 TRY=$((TRY + 1))
912909 if [ $TRY -eq $MAX_TRIES ]; then
913- echo "The release is not available after 30 mins. Manually re-run the job to try again."
910+ echo "The release was not available after 30 mins. Manually re-run the job to try again."
914911 exit 1
915912 fi
916913 done
917914
918915publishing-gate :
919- needs : [ verify_maven_central_deployment ]
916+ needs :
917+ - job : verify_maven_central_deployment
918+ optional : true
920919 rules :
921920 - if : ' $POPULATE_CACHE'
922921 when : never
You can’t perform that action at this time.
0 commit comments