Skip to content

Commit deff52d

Browse files
committed
Clean
1 parent fa4d9b9 commit deff52d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -884,18 +884,15 @@ package-oci:
884884
verify_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
917914
publishing-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

0 commit comments

Comments
 (0)