Skip to content

Commit ef655ce

Browse files
committed
Update sonatype credentials in sync-to-maven-central job
Closes gh-14454
1 parent 5d219bc commit ef655ce

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ci/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ jobs:
465465
params:
466466
BINTRAY_USERNAME: ((bintray-username))
467467
BINTRAY_PASSWORD: ((bintray-password))
468-
SONATYPE_USERNAME: ((sonatype-username))
469-
SONATYPE_PASSWORD: ((sonatype-password))
468+
SONATYPE_USER_TOKEN: ((sonatype-user-token))
469+
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
470470
BINTRAY_SUBJECT: ((bintray-subject))
471471
BINTRAY_REPO: ((bintray-repo))
472472
groups:

ci/scripts/sync-to-maven-central.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo "Syncing ${buildName}/${buildNumber} to Maven Central"
1212
--connect-timeout 240 \
1313
--max-time 2700 \
1414
-u ${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} \
15-
-H "Content-Type: application/json" -d "{\"username\": \"${SONATYPE_USERNAME}\", \"password\": \"${SONATYPE_PASSWORD}\"}" \
15+
-H "Content-Type: application/json" -d "{\"username\": \"${SONATYPE_USER_TOKEN}\", \"password\": \"${SONATYPE_PASSWORD_TOKEN}\"}" \
1616
-f \
1717
-X \
1818
POST "https://api.bintray.com/maven_central_sync/${BINTRAY_SUBJECT}/${BINTRAY_REPO}/${groupId}/versions/${version}" > /dev/null || { echo "Failed to sync" >&2; exit 1; }

ci/tasks/sync-to-maven-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ params:
88
BINTRAY_SUBJECT:
99
BINTRAY_USERNAME:
1010
BINTRAY_PASSWORD:
11-
SONATYPE_USERNAME:
12-
SONATYPE_PASSWORD:
11+
SONATYPE_USER_TOKEN:
12+
SONATYPE_PASSWORD_TOKEN:
1313
run:
1414
path: git-repo/ci/scripts/sync-to-maven-central.sh

0 commit comments

Comments
 (0)