File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,14 +221,16 @@ default:
221221maven-central-pre-release-check :
222222 image : ${BUILDER_IMAGE_REPO}:${BUILDER_IMAGE_VERSION_PREFIX}base
223223 stage : .pre
224- # rules:
225- # - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
226- # when: on_success
227- # allow_failure: false
224+ rules :
225+ - if : ' $CI_COMMIT_BRANCH == "master"'
226+ when : on_success
227+ allow_failure : false
228+ - if : ' $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
229+ when : on_success
230+ allow_failure : false
228231 script :
229232 - |
230- MAVEN_CENTRAL_USERNAME="invalid"
231- # MAVEN_CENTRAL_USERNAME=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-java.central_username --with-decryption --query "Parameter.Value" --out text)
233+ MAVEN_CENTRAL_USERNAME=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-java.central_username --with-decryption --query "Parameter.Value" --out text)
232234 MAVEN_CENTRAL_PASSWORD=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-java.central_password --with-decryption --query "Parameter.Value" --out text)
233235 # See https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
234236 # Use the staging API search endpoint to validate the tokens without relying on a specific deployment
You can’t perform that action at this time.
0 commit comments