Skip to content

Commit c20af0f

Browse files
committed
Fix promote target repo
See gh-9316
1 parent 3dd59ba commit c20af0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/scripts/promote.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo "Promoting ${buildName}/${buildNumber} to ${targetRepo}"
2424
curl \
2525
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
2626
-H"Content-type:application/json" \
27-
-d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"\"}" \
27+
-d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"${targetRepo}\"}" \
2828
-f \
2929
-X \
3030
POST "${ARTIFACTORY_SERVER}/api/build/promote/${buildName}/${buildNumber}" > /dev/null || { echo "Failed to promote" >&2; exit 1; }

0 commit comments

Comments
 (0)