@@ -10,16 +10,16 @@ echo "Project Version: '$grailsVersion'"
1010echo " EXIT STATUS of build: '$EXIT_STATUS '"
1111
1212# use travis_after_all.py for publishing only after all builds are successful.
13- if [[ " $BUILD_LEADER " == " YES" ]]; then
14- if [[ " $BUILD_AGGREGATE_STATUS " != " others_succeeded" ]]; then
15- echo " Some builds failed, not publishing."
16- exit 0
17- fi
18- else
19- # not build leader, exit
20- echo " Not build leader, exiting"
21- exit 0
22- fi
13+ # if [[ "$BUILD_LEADER" == "YES" ]]; then
14+ # if [[ "$BUILD_AGGREGATE_STATUS" != "others_succeeded" ]]; then
15+ # echo "Some builds failed, not publishing."
16+ # exit 0
17+ # fi
18+ # else
19+ # # not build leader, exit
20+ # echo "Not build leader, exiting"
21+ # exit 0
22+ # fi
2323
2424
2525if [[ $TRAVIS_PULL_REQUEST == ' false'
@@ -46,7 +46,7 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
4646 echo " Running Gradle publish for branch $TRAVIS_BRANCH "
4747
4848 if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
49- ./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=$?
49+ ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
5050 ./gradlew closeAndPromoteRepository
5151
5252 if [[ $EXIT_STATUS == 0 ]]; then
@@ -62,44 +62,44 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
6262 fi
6363
6464 # Configure GIT
65- git config --global credential.helper " store --file=~/.git-credentials"
66- echo " https://$GH_TOKEN :@github.com" > ~ /.git-credentials
67-
68- git config --global user.name " $GIT_NAME "
69- git config --global user.email " $GIT_EMAIL "
70-
71- # Tag the Profile Repo
72- git clone https://${GH_TOKEN} @github.com/grails/grails-profile-repository.git
73- cd grails-profile-repository
74-
75- echo " grailsVersion=${TRAVIS_TAG: 1} " > profiles/gradle.properties
76- git add profiles/gradle.properties
77- git commit -m " Release $TRAVIS_TAG profiles"
78- git tag $TRAVIS_TAG
79- git push --tags
80- git push
81- cd ..
82-
83- # Tag and release the docs
84- git clone https://${GH_TOKEN} @github.com/grails/grails-doc.git grails-doc
85- cd grails-doc
86-
87- echo " grails.version=${TRAVIS_TAG: 1} " > gradle.properties
88- git add gradle.properties
89- git commit -m " Release $TRAVIS_TAG docs"
90- git tag $TRAVIS_TAG
91- git push --tags
92- git push
93- cd ..
94-
95- # Update the website
96- git clone https://${GH_TOKEN} @github.com/grails/grails-static-website.git
97- cd grails-static-website
98- echo -e " ${TRAVIS_TAG: 1} " >> generator/src/main/resources/versions
99- git add generator/src/main/resources/versions
100- git commit -m " Release Grails $TRAVIS_TAG "
101- git push
102- cd ..
65+ # git config --global credential.helper "store --file=~/.git-credentials"
66+ # echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
67+
68+ # git config --global user.name "$GIT_NAME"
69+ # git config --global user.email "$GIT_EMAIL"
70+
71+ # # Tag the Profile Repo
72+ # git clone https://${GH_TOKEN}@github.com/grails/grails-profile-repository.git
73+ # cd grails-profile-repository
74+
75+ # echo "grailsVersion=${TRAVIS_TAG:1}" > profiles/gradle.properties
76+ # git add profiles/gradle.properties
77+ # git commit -m "Release $TRAVIS_TAG profiles"
78+ # git tag $TRAVIS_TAG
79+ # git push --tags
80+ # git push
81+ # cd ..
82+
83+ # # Tag and release the docs
84+ # git clone https://${GH_TOKEN}@github.com/grails/grails-doc.git grails-doc
85+ # cd grails-doc
86+
87+ # echo "grails.version=${TRAVIS_TAG:1}" > gradle.properties
88+ # git add gradle.properties
89+ # git commit -m "Release $TRAVIS_TAG docs"
90+ # git tag $TRAVIS_TAG
91+ # git push --tags
92+ # git push
93+ # cd ..
94+
95+ # # Update the website
96+ # git clone https://${GH_TOKEN}@github.com/grails/grails-static-website.git
97+ # cd grails-static-website
98+ # echo -e "${TRAVIS_TAG:1}" >> generator/src/main/resources/versions
99+ # git add generator/src/main/resources/versions
100+ # git commit -m "Release Grails $TRAVIS_TAG"
101+ # git push
102+ # cd ..
103103
104104 # Rebuild Artifactory index
105105 curl -H " X-Api-Key:$ARTIFACTORY_API_KEY " -X POST " http://repo.grails.org/grails/api/maven?repos=libs-releases-local,plugins-releases-local,plugins3-releases-local,core&force=1"
0 commit comments