Skip to content

Commit 2c836c0

Browse files
Merge branch '3.0.x' into 3.1.x
2 parents 570bf41 + d4fcd63 commit 2c836c0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

travis-build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)