File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ if [[ ${RELEASE_TYPE} = "RELEASE" ]]; then
45
45
POST " ${ARTIFACTORY_SERVER} /api/build/distribute/${buildName} /${buildNumber} " > /dev/null || { echo " Failed to distribute" >&2 ; exit 1; }
46
46
47
47
echo " Waiting for artifacts to be published"
48
- ARTIFACTS_PUBLISHED =false
48
+ artifactsPublished =false
49
49
WAIT_TIME=5
50
- COUNTER =0
51
- while [ $artifactsPublished == " false" ] && [ $COUNTER -lt 60 ]; do
50
+ counter =0
51
+ while [ $artifactsPublished == " false" ] && [ $counter -lt 120 ]; do
52
52
result=$( curl -s https://api.bintray.com/packages/" ${BINTRAY_SUBJECT} " /" ${BINTRAY_REPO} " /" ${groupId} " )
53
53
versions=$( echo " $result " | jq -r ' .versions' )
54
54
exists=$( echo " $versions " | grep " $version " -o || true )
55
55
if [ " $exists " = " $version " ]; then
56
56
artifactsPublished=true
57
57
fi
58
- COUNTER =$(( COUNTER + 1 ))
58
+ counter =$(( counter + 1 ))
59
59
sleep $WAIT_TIME
60
60
done
61
61
if [[ $artifactsPublished = " false" ]]; then
You can’t perform that action at this time.
0 commit comments