File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,18 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0
5858 echo " Running Gradle publish for branch $TRAVIS_BRANCH "
5959
6060 if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
61- ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" publish uploadArchives closeAndPromoteRepository || EXIT_STATUS=$?
62- ./gradlew assemble || EXIT_STATUS=$?
61+ ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" publish uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
62+ ./gradlew closeAndPromoteRepository
63+
64+ if [[ $EXIT_STATUS == 0 ]]; then
65+ ./gradlew --stop
66+ ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
67+ ./gradlew closeAndPromoteRepository
68+ fi
69+
70+ if [[ $EXIT_STATUS == 0 ]]; then
71+ ./gradlew assemble || EXIT_STATUS=$?
72+ fi
6373
6474 # Configure GIT
6575 git config --global user.name " $GIT_NAME "
You can’t perform that action at this time.
0 commit comments