Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Extends Merge check for checking the build of the target branch

Joao Ferreira November 23, 2018

Hello,

I would like to disable the merge button of the pull request when the build of the target branch fails. What is the best way to doing that?

I'm using Jenkins and with jenkins I can get easily the last Build status (

 jenkinsUrl + jobNameURL + "/lastBuild/api/json

)

Can I do this with bitbucket api ?

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2018

Hi Joao, welcome to the Community!

Are you on Server or Cloud? The API will be able to achieve different things depending on which platform you are, you can check our documentation at Bitbucket Cloud API and Bitbucket Server REST API.

For Server, we also a tutorial that might be helpful for you, you can find it at  Controlling when pull requests can be merged.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events