Skip to content

Commit 08b9899

Browse files
committed
Clean
1 parent 6d705d9 commit 08b9899

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
@@ -885,18 +885,15 @@ package-oci:
885885
verify_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
918915
publishing-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

0 commit comments

Comments
 (0)