File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 22
22
echo " Promoting ${buildName} /${buildNumber} to ${targetRepo} "
23
23
24
24
curl \
25
+ -s \
26
+ --connect-timeout 240 \
27
+ --max-time 900 \
25
28
-u ${ARTIFACTORY_USERNAME} :${ARTIFACTORY_PASSWORD} \
26
- -H" Content-type:application/json" \
29
+ -H " Content-type:application/json" \
27
30
-d " {\" status\" : \" staged\" , \" sourceRepo\" : \" libs-staging-local\" , \" targetRepo\" : \" ${targetRepo} \" }" \
28
31
-f \
29
32
-X \
30
33
POST " ${ARTIFACTORY_SERVER} /api/build/promote/${buildName} /${buildNumber} " > /dev/null || { echo " Failed to promote" >&2 ; exit 1; }
31
34
32
35
if [[ $RELEASE_TYPE = " RELEASE" ]]; then
33
36
curl \
37
+ -s \
38
+ --connect-timeout 240 \
39
+ --max-time 900 \
34
40
-u ${ARTIFACTORY_USERNAME} :${ARTIFACTORY_PASSWORD} \
35
- -H" Content-type:application/json" \
41
+ -H " Content-type:application/json" \
36
42
-u ${ARTIFACTORY_USERNAME} :${ARTIFACTORY_PASSWORD} \
37
43
-d " {\" sourceRepos\" : [\" libs-release-local\" ], \" targetRepo\" : \" spring-distributions\" }"
38
44
-f \
39
45
-X \
40
46
POST " ${ARTIFACTORY_SERVER} /api/build/distribute/${buildName} /${buildNumber} " > /dev/null || { echo " Failed to publish" >&2 ; exit 1; }
41
47
42
48
curl \
49
+ -s \
50
+ --connect-timeout 240 \
51
+ --max-time 900 \
43
52
-u ${BINTRAY_USERNAME} :${BINTRAY_PASSWORD} \
44
53
-H " Content-Type: application/json" -d " {\" username\" : \" ${SONATYPE_USERNAME} \" , \" password\" : \" ${SONATYPE_PASSWORD} \" }"
45
54
-f \
You can’t perform that action at this time.
0 commit comments