From c20af0f57a818382c6b64dec13c66041647c8f36 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 11 Oct 2017 18:49:16 -0700 Subject: [PATCH] Fix promote target repo See gh-9316 --- ci/scripts/promote.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/promote.sh b/ci/scripts/promote.sh index 701c15184c..c3127bde21 100755 --- a/ci/scripts/promote.sh +++ b/ci/scripts/promote.sh @@ -24,7 +24,7 @@ echo "Promoting ${buildName}/${buildNumber} to ${targetRepo}" curl \ -u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \ -H"Content-type:application/json" \ - -d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"\"}" \ + -d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"${targetRepo}\"}" \ -f \ -X \ POST "${ARTIFACTORY_SERVER}/api/build/promote/${buildName}/${buildNumber}" > /dev/null || { echo "Failed to promote" >&2; exit 1; }