Skip to content

Commit 42972f0

Browse files
committed
Revert testing changes
1 parent eaaab34 commit 42972f0

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.gitlab-ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,16 @@ default:
221221
maven-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

0 commit comments

Comments
 (0)