Update sonatype credentials in sync-to-maven-central job

Closes gh-14454
This commit is contained in:
Madhura Bhave
2018-10-15 15:14:08 -07:00
parent 5d219bcd19
commit ef655ce949
3 changed files with 5 additions and 5 deletions

View File

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