Skip to content

Commit

Permalink
Merge pull request #22 from burnoo/increase-nexus-timeout
Browse files Browse the repository at this point in the history
[skip ci] Increase timeout in release-nexus-staging.sh
  • Loading branch information
burnoo authored Aug 6, 2024
2 parents 0fbfbf6 + 9ba7bdd commit 5a1464d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release-nexus-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ fi

start=$(date +%s)
while true ; do
# force timeout after 15 minutes
# force timeout after 30 minutes
now=$(date +%s)
if [ $(( (now - start) / 60 )) -gt 15 ]; then
if [ $(( (now - start) / 60 )) -gt 30 ]; then
echo "Closing process is to long, stopping the job (waiting for closing repository)."
exit 1
fi
Expand Down Expand Up @@ -79,4 +79,4 @@ release=$(curl -s --request POST -u "$SONATYPE_USERNAME:$SONATYPE_PASSWORD" \
if [ ! -z "$release" ]; then
echo "Error while releasing $SONATYPE_REPOSITORY_ID : $release."
exit 1
fi
fi

0 comments on commit 5a1464d

Please sign in to comment.