Merge branch '2.0.x'
This commit is contained in:
commit
e7fd7eb3cc
|
|
@ -528,8 +528,8 @@ jobs:
|
|||
params:
|
||||
BINTRAY_USERNAME: ((bintray-username))
|
||||
BINTRAY_PASSWORD: ((bintray-password))
|
||||
SONATYPE_USERNAME: ((sonatype-username))
|
||||
SONATYPE_PASSWORD: ((sonatype-password))
|
||||
SONATYPE_USER_TOKEN: ((sonatype-user-token))
|
||||
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
|
||||
BINTRAY_SUBJECT: ((bintray-subject))
|
||||
BINTRAY_REPO: ((bintray-repo))
|
||||
groups:
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ params:
|
|||
BINTRAY_SUBJECT:
|
||||
BINTRAY_USERNAME:
|
||||
BINTRAY_PASSWORD:
|
||||
SONATYPE_USERNAME:
|
||||
SONATYPE_PASSWORD:
|
||||
SONATYPE_USER_TOKEN:
|
||||
SONATYPE_PASSWORD_TOKEN:
|
||||
run:
|
||||
path: git-repo/ci/scripts/sync-to-maven-central.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue