-
Notifications
You must be signed in to change notification settings - Fork 50
Description
- I am not able to fix the problem myself and send a pull request instead of an issue.
- There is no existing issue regarding the same topic
- Plugin Version: 2.2.1
- Jenkins Version: 2.190.3
- Jenkins Job Type: Freestyle
- Triggered via: Bitbucket Cloud
Expected Behavior
While an existing build is in progress for the project, triggered by this plugin because of a PR update (new commit) or PR create events, if I submit another commit and bitbucket sends an PR update event, the ongoing build should be cancelled/stopped and a new one should start that will pick the new revision.
Actual Behavior
Current build it is not stopped, it keeps on going; the new build for the new commit is not triggered even though "Execute concurrent builds if necessary" is checked, I understand this is not a setting that belongs to this plugin... however it makes sense to work.
Steps to Reproduce
Provide an unambiguous set of steps to reproduce this bug
- have a project that is triggered on the PR update and create events
- create a PR, build will start
- wait 5 min and then commit changes to the same PR
- observe how the second commit it is not stopping the current build and it is not triggering another build
Context
This is affecting resource consumption, time consumption, and it can mislead cause it finishing the old build and not builds the second. thus leaving with impression build is successful on the last commit.
Bitbucket payload
usual update PR event. it is quite long,I can provide it if really needed it.
Jenkins Job configuration
we access bitbucket through stored credentials in jenkins
building branch origin/feature/* but it is reproing with simpler filters like origin/development