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

Trigger Jenkins build on pull requests at the exact commit it was triggered

Rodrigo Guirelli de Queiroz August 22, 2018

Hi,

I have a scenario where a pull request triggers a jenkins build by using Bitbucket Server Webhook plugin. This eventually trigger several builds in our build servers, which will take some time to finish.

The problem is: some jobs finish before than others. If the first jobs already fail, the developer might take action, change and commit again to the pull request, triggering again more builds, before the first one is already finish. Then something funny happen: when the jobs that takes longer to start finally begins, the pull the updated branch instead of the old commits.

Supposing that the change affected all jobs, the developer might wrongly see that his first build was okay instead of failing.

Is there any way to build the exact commit that the pull request is triggering? I would be open to some suggestions.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events