Skip to content

Commit 11b8e7c

Browse files
committed
Don't exit script on error
Update CI scripts so that command failures do not cause an immediate exit. Prior to this commit, some of our looping logic would never run because the entire script would exit.
1 parent fb90803 commit 11b8e7c

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

ci/scripts/detect-jdk-updates.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -e
32

43
case "$JDK_VERSION" in
54
java8)

ci/scripts/promote.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -e
32

43
source $(dirname $0)/common.sh
54

@@ -31,7 +30,7 @@ curl \
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"

ci/scripts/sync-to-maven-central.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -e
32

43
buildName=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.name' )
54
buildNumber=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.number' )

0 commit comments

Comments
 (0)