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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pull Request 'Merge' option enabled before it's build completion

I have a strange scenario - we have configured jenkins so that a build runs for each commits using 'Multibranch pipeline' job for any branch and importantly my Jenkins 'master' node is set to ONE executor, so it can run only one build at a time. Please read the flow

1. Developer commits a code in branch 'A' - build runs successfully 

2. Creates a PR from branch 'A' to 'master' branch - 'Merge' option is enabled by default since the last commit build is success in branch 'A'

Based on the result of the PR build, if it is Success it should enable 'Merge' option as I have set 'Minimum successfull builds -1' as a Merge Checks. 

Since, I have one executor in jenkins 'master' node PR build is in queue as it is still processing other jobs - in the meantime, the PR take the last commit's build status in branch 'A' and consider it as a PASS for the 'Merge Checks' and allows the Developer to Merge the branch 'A' to 'master' branch. This is clearly by-passing before knowing the status of the PR build. However, "Merge" option is disabled if the PR build has started. 

Please let me know if I didn't explained the scenario clearly, is there any extra configs requires to address this issue.

Thanks in advance,




0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,098 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you