Skip to content

Commit

Permalink
Adding retries as suggested by Codearte/gradle-nexus-staging-plugin#5
Browse files Browse the repository at this point in the history
  • Loading branch information
moaxcp committed Mar 6, 2017
1 parent 82b1536 commit 79b80a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ uploadArchives {
nexusStaging {
username = System.getProperty('nexus.username')
password = System.getProperty('nexus.password')
numberOfRetries = 10
delayBetweenRetriesInMillis = 30000

This comment has been minimized.

Copy link
@szpak

szpak Mar 10, 2017

I would change delay to 10000 to not wait 30 seconds if you are unlucky. numberOfRetries can be used to get the same total time, but 100 seconds in total should be enough (unless you have plenty of artifacts).

This comment has been minimized.

Copy link
@moaxcp

moaxcp Mar 11, 2017

Author Owner

Thanks I will.

}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; th
-Psigning.secretKeyRingFile=signingkey.gpg \
-Psigning.password=$SIGNING_PASSWORD

./gradlew closeAndPromoteRepository --stacktrace \
./gradlew closeAndPromoteRepository --info --stacktrace \
-Dnexus.username=moaxcp \
-Dnexus.password=$NEXUS_PASSWORD

Expand Down

0 comments on commit 79b80a0

Please sign in to comment.