簡體   English   中英

jenkins將多個分支合並到從master分支的“ integration-branch”

[英]jenkins merge multiple branches to “integration-branch” branched from master

您能否讓我知道是否有辦法在git中從master創建分支newbranch1並將多個分支B1,b2,b3合並到jenkins中的newbranch1中?

是的,這應該很容易(如果您使用Linux作為操作系統,則更是如此)。

使用Git SCM插件來配置倉庫。 然后,您將要使用shell插件,並只運行您正在描述的git命令:

git fetch origin    #not strictly necessary
git checkout -b newbranch1 origin/master

git merge B1 b2 b3

# it would be wise to put some smarts in here... $? && git push maybe?
git push origin master

當然,git&Jenkins只能做很多事情。 如果存在無法解決git的沖突,則此工作對您沒有多大幫助,因為您需要手動執行合並。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM