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:
885
885
verify_maven_central_deployment :
886
886
image : registry.ddbuild.io/images/mirror/amazon/aws-cli:2.4.29
887
887
stage : publish
888
- # needs: [ deploy_to_maven_central ]
888
+ needs : [ deploy_to_maven_central ]
889
889
rules :
890
890
- if : ' $POPULATE_CACHE'
891
891
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
896
894
script :
897
895
- |
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}
900
897
MAVEN_URL="https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
901
898
echo "Checking URL: $MAVEN_URL"
902
899
# Wait 30 min for the release to be available
@@ -910,13 +907,15 @@ verify_maven_central_deployment:
910
907
sleep $DELAY
911
908
TRY=$((TRY + 1))
912
909
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."
914
911
exit 1
915
912
fi
916
913
done
917
914
918
915
publishing-gate :
919
- needs : [ verify_maven_central_deployment ]
916
+ needs :
917
+ - job : verify_maven_central_deployment
918
+ optional : true
920
919
rules :
921
920
- if : ' $POPULATE_CACHE'
922
921
when : never
You can’t perform that action at this time.
0 commit comments