I am new to Git and also to Jenkins. My problem is that I can\'t get the Jenkins Maven release plugin to work.
When I build a common Maven build with Jenkins, it wor
I had the same problem. I tried Constantine's solution, that worked perfectly but the tag and the commits were pushed on the "localbranchname" remote repository.
So I did the same but manually : first add a pre-steps shell script :
git branch -f localJenkins
git checkout localJenkins
Then a post-steps shell script :
git checkout master
git rebase localJenkins
git branch -D localJenkins
git push origin master
git push --tag
This works ! This way, you don't have jenkins remote branch, commits and tag will be on the master (or other) branch.
hope this helps !