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
4545 POST " ${ARTIFACTORY_SERVER} /api/build/distribute/${buildName} /${buildNumber} " > /dev/null || { echo " Failed to distribute" >&2 ; exit 1; }
4646
4747 echo " Waiting for artifacts to be published"
48- ARTIFACTS_PUBLISHED =false
48+ artifactsPublished =false
4949 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
5252 result=$( curl -s https://api.bintray.com/packages/" ${BINTRAY_SUBJECT} " /" ${BINTRAY_REPO} " /" ${groupId} " )
5353 versions=$( echo " $result " | jq -r ' .versions' )
5454 exists=$( echo " $versions " | grep " $version " -o || true )
5555 if [ " $exists " = " $version " ]; then
5656 artifactsPublished=true
5757 fi
58- COUNTER =$(( COUNTER + 1 ))
58+ counter =$(( counter + 1 ))
5959 sleep $WAIT_TIME
6060 done
6161 if [[ $artifactsPublished = " false" ]]; then
You can’t perform that action at this time.
0 commit comments