File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -e
32
43case " $JDK_VERSION " in
54 java8)
Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -e
32
43source $( dirname $0 ) /common.sh
54
3130 -f \
3231 -X \
3332 POST " ${ARTIFACTORY_SERVER} /api/build/promote/${buildName} /${buildNumber} " > /dev/null || {
34- result=$( curl -s -u ${ARTIFACTORY_USERNAME} :${ARTIFACTORY_PASSWORD} -f " ${ARTIFACTORY_SERVER} /api/build/${buildName} /${buildNumber} " )
33+ result=$( curl -s -f - u ${ARTIFACTORY_USERNAME} :${ARTIFACTORY_PASSWORD} " ${ARTIFACTORY_SERVER} /api/build/${buildName} /${buildNumber} " )
3534 resultRepo=$( echo $result | jq -r ' .buildInfo.statuses[0].repository' )
3635 if [[ $resultRepo = " libs-release-local" ]]; then
3736 echo " Already promoted"
Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -e
32
43buildName=$( cat artifactory-repo/build-info.json | jq -r ' .buildInfo.name' )
54buildNumber=$( cat artifactory-repo/build-info.json | jq -r ' .buildInfo.number' )
You can’t perform that action at this time.
0 commit comments