Skip to content

Commit 14f1ebb

Browse files
authored
Remove maven central pre-release check (#10939)
* Remove maven central pre-release check Removed maven central pre-release check to streamline CI process. * Remove optional job dependency from build stage Removed optional dependency on maven-central-pre-release-check job.
1 parent d50021f commit 14f1ebb

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -214,28 +214,6 @@ default:
214214
- *cgroup_info
215215
- *container_info
216216

217-
# Check and fail early if maven central credentials are incorrect. When a new token is generated
218-
# on the central publisher portal, it invalidates the old one. This check prevents going further.
219-
# See https://datadoghq.atlassian.net/wiki/x/Oog5OgE
220-
maven-central-pre-release-check:
221-
image: ghcr.io/datadog/dd-trace-java-docker-build:${BUILDER_IMAGE_VERSION_PREFIX}base
222-
stage: .pre
223-
rules:
224-
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
225-
when: on_success
226-
allow_failure: false
227-
script:
228-
- |
229-
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)
230-
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)
231-
# See https://central.sonatype.org/publish/publish-portal-api/
232-
# 15e0cbbb-deff-421e-9e02-296a24d0cada is deployment, any deployment id listed in central work, the idea is to check whether the token can authenticate
233-
curl --request POST --include --fail https://central.sonatype.com/api/v1/publisher/status?id=15e0cbbb-deff-421e-9e02-296a24d0cada --header "Authorization: Bearer $(printf "$MAVEN_CENTRAL_USERNAME:$MAVEN_CENTRAL_PASSWORD" | base64)"
234-
if [ $? -ne 0 ]; then
235-
echo "Failed to authenticate against central. Check credentials, see https://datadoghq.atlassian.net/wiki/x/Oog5OgE"
236-
exit 1
237-
fi
238-
239217
dd-octo-sts-pre-release-check:
240218
image: registry.ddbuild.io/images/dd-octo-sts-ci-base:2025.06-1
241219
stage: .pre
@@ -264,8 +242,6 @@ dd-octo-sts-pre-release-check:
264242

265243
build:
266244
needs:
267-
- job: maven-central-pre-release-check
268-
optional: true
269245
- job: dd-octo-sts-pre-release-check
270246
optional: true
271247
extends: .gradle_build

0 commit comments

Comments
 (0)