繁体   English   中英

分支的Bitbucket挂钩构建不适用于Jenkins

[英]Bitbucket hook build from branch does not work for Jenkins

我让詹金斯(Jenkins)从事SonarQube分析工作,具有以下价值:

GIT SSH URL - set correctly
Branch Specifier - "**"

在Bitbucket中,我给出了以下值:

Jenkins URL - http://101.101.101.101:8080/Jenkins
Skip SSL Certificate - Enabled
Omit SHA1 Hash Code - Unchecked
Omit Branch Name - Unchecked
Omit the Trigger Build Button - Unchecked
Advanced Config:
Committers to Ignore - Blank
Branch Options - Build All selected and Blank field

我希望Bitbucket仅在代码被合并(从拉取请求)到特定分支时才触发Jenkins。

我在Bitbucket中尝试了以下设置:

Branch Options - Build From selected and "release/Integeration" in the field

仍然触发每个分支的更改。

我在Bitbucket中尝试过:

Branch Options - Build From selected and "ref/heads/release/Integeration" in the field

现在什么都没有触发。

假设您将Bitbucket的HOOK与Jenkins的Parameterized Builds插件一起使用,并假设您在Bitbucket中使用该插件设置了工作。 如果是这样,您是否仅定义了拉取请求(PR)触发器?

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM