File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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))
472472groups :
Original file line number Diff line number Diff 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; }
Original file line number Diff line number Diff line change 88 BINTRAY_SUBJECT :
99 BINTRAY_USERNAME :
1010 BINTRAY_PASSWORD :
11- SONATYPE_USERNAME :
12- SONATYPE_PASSWORD :
11+ SONATYPE_USER_TOKEN :
12+ SONATYPE_PASSWORD_TOKEN :
1313run :
1414 path : git-repo/ci/scripts/sync-to-maven-central.sh
You can’t perform that action at this time.
0 commit comments