简体   繁体   English

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

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

I have Jenkins with a job for SonarQube analysis, with the following value: 我让詹金斯(Jenkins)从事SonarQube分析工作,具有以下价值:

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

In Bitbucket, I have given the following value: 在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

I want Bitbucket to trigger Jenkins only if code is merged (from a pull request) to particular branch. 我希望Bitbucket仅在代码被合并(从拉取请求)到特定分支时才触发Jenkins。

I tried the following settings in Bitbucket: 我在Bitbucket中尝试了以下设置:

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

Still changes to every branch is triggered. 仍然触发每个分支的更改。

I tried this in Bitbucket: 我在Bitbucket中尝试过:

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

Now nothing gets triggered. 现在什么都没有触发。

Assuming you use HOOK from Bitbucket with the plugin Parameterized Builds for Jenkins and assuming you set a job using that plugin in Bitbucket. 假设您将Bitbucket的HOOK与Jenkins的Parameterized Builds插件一起使用,并假设您在Bitbucket中使用该插件设置了工作。 If so, did you define the pull request (PR) trigger only? 如果是这样,您是否仅定义了拉取请求(PR)触发器?

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

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

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