Skip to content

Commit 39e680d

Browse files
committed
Increase promotion timeouts
See gh-9316
1 parent c20af0f commit 39e680d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ci/scripts/promote.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,33 @@ fi
2222
echo "Promoting ${buildName}/${buildNumber} to ${targetRepo}"
2323

2424
curl \
25+
-s \
26+
--connect-timeout 240 \
27+
--max-time 900 \
2528
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
26-
-H"Content-type:application/json" \
29+
-H "Content-type:application/json" \
2730
-d "{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"${targetRepo}\"}" \
2831
-f \
2932
-X \
3033
POST "${ARTIFACTORY_SERVER}/api/build/promote/${buildName}/${buildNumber}" > /dev/null || { echo "Failed to promote" >&2; exit 1; }
3134

3235
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
3336
curl \
37+
-s \
38+
--connect-timeout 240 \
39+
--max-time 900 \
3440
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
35-
-H"Content-type:application/json" \
41+
-H "Content-type:application/json" \
3642
-u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} \
3743
-d "{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\"}"
3844
-f \
3945
-X \
4046
POST "${ARTIFACTORY_SERVER}/api/build/distribute/${buildName}/${buildNumber}" > /dev/null || { echo "Failed to publish" >&2; exit 1; }
4147

4248
curl \
49+
-s \
50+
--connect-timeout 240 \
51+
--max-time 900 \
4352
-u ${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} \
4453
-H "Content-Type: application/json" -d "{\"username\": \"${SONATYPE_USERNAME}\", \"password\": \"${SONATYPE_PASSWORD}\"}"
4554
-f \

0 commit comments

Comments
 (0)