Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,11 +1017,12 @@ verify_maven_central_deployment:
"https://repo1.maven.org/maven2/com/datadoghq/dd-trace-api/${VERSION}/dd-trace-api-${VERSION}.jar"
"https://repo1.maven.org/maven2/com/datadoghq/dd-trace-ot/${VERSION}/dd-trace-ot-${VERSION}.jar"
)
# Wait 5 mins initially, then try 5 times with a minute delay between each retry to see if the release artifacts are available
sleep 300
# Try once immediately (fast path on job retry), then wait 5 mins for initial propagation,
# then try 4 more times with a minute delay between each retry.
TRY=0
MAX_TRIES=5
DELAY=60
MAX_TRIES=6
INITIAL_DELAY=300
RETRY_DELAY=60
while [ $TRY -lt $MAX_TRIES ]; do
ARTIFACTS_AVAILABLE=true
for URL in "${ARTIFACT_URLS[@]}"; do
Expand All @@ -1038,7 +1039,11 @@ verify_maven_central_deployment:
echo "The release was not available after 10 mins. Manually re-run the job to try again."
exit 1
fi
sleep $DELAY
if [ $TRY -eq 1 ]; then
sleep $INITIAL_DELAY
else
sleep $RETRY_DELAY
fi
done

publishing-gate:
Expand Down
Loading