File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,14 @@ if [ ! -z "$TRAVIS_TAG" ]
4949then
5050 increment_version_to_next_snapshot $TRAVIS_TAG
5151 echo " on a tag -> set pom.xml <version> to next SNAPSHOT $new_snapshot "
52+ git checkout master
5253 mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$new_snapshot
5354 mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:commit
5455 # Save some useful information
5556 REPO=` git config remote.origin.url`
5657 SSH_REPO=${REPO/ https: \/\/ github.com\/ / git@ github.com: }
57- git clone $REPO out
58- # Clean out existing contents
59- cd out
6058 git config user.name " Travis CI"
6159 git config user.email
" [email protected] " 62- yes | cp -f ../pom.xml pom.xml
6360 git add pom.xml
6461 git commit -m " [Travis-CI] next snapshot version"
6562
7067 ssh-add .travis/deploy_key
7168
7269 # Now that we're all set up, we can push.
73- git push $SSH_REPO $TARGET_BRANCH
70+ git push $SSH_REPO master
7471fi
You can’t perform that action at this time.
0 commit comments