简体   繁体   中英

Bitbucket hook build from branch does not work for Jenkins

I have Jenkins with a job for SonarQube analysis, with the following value:

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

In Bitbucket, I have given the following value:

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.

I tried the following settings in Bitbucket:

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

Still changes to every branch is triggered.

I tried this in 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. If so, did you define the pull request (PR) trigger only?

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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