Skip to content

Commit ac4b923

Browse files
committed
More promote script fixes
See gh-9316
1 parent 81d1b3c commit ac4b923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/scripts/promote.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [[ $RELEASE_TYPE = "RELEASE" ]]; then
4040
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
4141
-H "Content-type:application/json" \
4242
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
43-
-d "{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\"}"
43+
-d "{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\"}" \
4444
-f \
4545
-X \
4646
POST "${ARTIFACTORY_SERVER}/api/build/distribute/${buildName}/${buildNumber}" > /dev/null || { echo "Failed to publish" >&2; exit 1; }
@@ -50,7 +50,7 @@ if [[ $RELEASE_TYPE = "RELEASE" ]]; then
5050
--connect-timeout 240 \
5151
--max-time 900 \
5252
-u ${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} \
53-
-H "Content-Type: application/json" -d "{\"username\": \"${SONATYPE_USERNAME}\", \"password\": \"${SONATYPE_PASSWORD}\"}"
53+
-H "Content-Type: application/json" -d "{\"username\": \"${SONATYPE_USERNAME}\", \"password\": \"${SONATYPE_PASSWORD}\"}" \
5454
-f \
5555
-X \
5656
POST "https://api.bintray.com/maven_central_sync/${BINTRAY_SUBJECT}/${BINTRAY_REPO}/${groupId}/versions/${version}" > /dev/null || { echo "Failed to sync" >&2; exit 1; }

0 commit comments

Comments
 (0)