File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22cd ` dirname $0 ` /..
33
4+ function fix_git {
5+ echo " Fixing git setup for $TRAVIS_BRANCH "
6+ git checkout ${TRAVIS_BRANCH}
7+ git branch -u origin/${TRAVIS_BRANCH}
8+ git config branch.${TRAVIS_BRANCH} .remote origin
9+ git config branch.${TRAVIS_BRANCH} .merge refs/heads/${TRAVIS_BRANCH}
10+ }
11+
12+
413if [ " ${TRAVIS_BRANCH} " == ' master' -a " ${TRAVIS_PULL_REQUEST} " == ' false' ] || [ -n " ${TRAVIS_TAG} " ]; then
514 if [[ -z " ${SONATYPE_USERNAME} " || -z " ${SONATYPE_PASSWORD} " ]]; then
615 echo " ERROR! Please set SONATYPE_USERNAME and SONATYPE_PASSWORD environment variable"
716 exit 1
817 fi
918
1019 if [ ! -z " ${TRAVIS_TAG} " ]; then
20+ fix_git
1121 echo " travis tag is set -> updating pom.xml <version> attribute to ${TRAVIS_TAG} "
1222 ./mvnw --batch-mode --settings .travis/settings.xml -DskipTests=true -DreleaseVersion=${TRAVIS_TAG} release:clean release:prepare release:perform
1323 SUCCESS=$?
You can’t perform that action at this time.
0 commit comments