Skip to content

Commit 2f8e4e0

Browse files
committed
Change retry rate
1 parent 0896be2 commit 2f8e4e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,10 @@ verify_maven_central_deployment:
898898
"https://repo1.maven.org/maven2/com/datadoghq/dd-trace-api/${VERSION}/dd-trace-api-${VERSION}.jar"
899899
"https://repo1.maven.org/maven2/com/datadoghq/dd-trace-ot/${VERSION}/dd-trace-ot-${VERSION}.jar"
900900
)
901-
# Try every min for 30 mins to see if the release artifacts are available
901+
# Wait 5 mins initially, then try 5 times with a minute delay between each retry to see if the release artifacts are available
902+
sleep 300
902903
TRY=0
903-
MAX_TRIES=30
904+
MAX_TRIES=5
904905
DELAY=60
905906
while [ $TRY -lt $MAX_TRIES ]; do
906907
ARTIFACTS_AVAILABLE=true
@@ -913,12 +914,12 @@ verify_maven_central_deployment:
913914
if [ "$ARTIFACTS_AVAILABLE" = true ]; then
914915
break
915916
fi
916-
sleep $DELAY
917917
TRY=$((TRY + 1))
918918
if [ $TRY -eq $MAX_TRIES ]; then
919-
echo "The release was not available after 30 mins. Manually re-run the job to try again."
919+
echo "The release was not available after 10 mins. Manually re-run the job to try again."
920920
exit 1
921921
fi
922+
sleep $DELAY
922923
done
923924
924925
publishing-gate:

0 commit comments

Comments
 (0)