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 1
1
#! /bin/bash
2
- set -e
3
2
4
3
case " $JDK_VERSION " in
5
4
java8)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -e
3
2
4
3
source $( dirname $0 ) /common.sh
5
4
31
30
-f \
32
31
-X \
33
32
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} " )
35
34
resultRepo=$( echo $result | jq -r ' .buildInfo.statuses[0].repository' )
36
35
if [[ $resultRepo = " libs-release-local" ]]; then
37
36
echo " Already promoted"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -e
3
2
4
3
buildName=$( cat artifactory-repo/build-info.json | jq -r ' .buildInfo.name' )
5
4
buildNumber=$( cat artifactory-repo/build-info.json | jq -r ' .buildInfo.number' )
You can’t perform that action at this time.
0 commit comments