Skip to content

Commit 28acf28

Browse files
committed
Fix promote CI script
1 parent 4267317 commit 28acf28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/scripts/promote.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)