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