[英]how to specify which branch gets build in jenkins from a webhook in bitbucket
I installed the bitbucket plugin in Jenkins, and made the following changes: 我在Jenkins中安装了bitbucket插件,并进行了以下更改:
I added the webhook on the bitbucket repo in the following format: 我以以下格式在bitbucket存储库上添加了Webhook:
http://JENKINS.SERVER:PORT/bitbucket-hook http://JENKINS.SERVER:PORT / bitbucket-hook
Under build trigger enabled Build when a change is pushed to BitBucket
Build when a change is pushed to BitBucket
启用了在内部构建触发器下的构建
Under Source Code Management selected GIT
; 在“
Source Code Management selected GIT
; I defined which branch to build: foobar 我定义了要建立的分支: foobar
So my question is, I want the build to be triggered only when there is a commit on that specific branch foobar ! 所以我的问题是,我希望仅在该特定分支foobar上有提交时才触发构建!
How do I do that? 我怎么做?
Do I need to specify anything else on the bitbucket side? 我是否需要在bitbucket端指定其他任何内容?
Tnx, Tom Tnx,汤姆
In Job Configuration -> Source Code Management -> Branches to build 在作业配置->源代码管理->要构建的分支中
Specify which branch you want to trigger for build 指定要触发构建的分支
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.