We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dd59ba commit c20af0fCopy full SHA for c20af0f
ci/scripts/promote.sh
@@ -24,7 +24,7 @@ echo "Promoting ${buildName}/${buildNumber} to ${targetRepo}"
24
curl \
25
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
26
-H"Content-type:application/json" \
27
- -d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"\"}" \
+ -d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"${targetRepo}\"}" \
28
-f \
29
-X \
30
POST "${ARTIFACTORY_SERVER}/api/build/promote/${buildName}/${buildNumber}" > /dev/null || { echo "Failed to promote" >&2; exit 1; }
0 commit comments