git - jenkins merge multiple branches to "integration-branch" branched from master -
can please let me know if there way create branch newbranch1 master in git , merge multiple branches b1, b2, b3 newbranch1 in jenkins?
yes should easy (moreso if you're using linux os).
use git scm plugin configure repo. you'll want use shell plugin , run git commands you're describing:
git fetch origin #not strictly necessary git checkout -b newbranch1 origin/master git merge b1 b2 b3 # wise put smarts in here... $? && git push maybe? git push origin master
of course, git & jenkins can much. if there conflicts git can't work out job isn't going you'd need perform merge manually.
Comments
Post a Comment