Skip to content

Currently running build is not stopped by new commit/s for the same PR #70

@oviupstack

Description

@oviupstack
  • 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

  1. have a project that is triggered on the PR update and create events
  2. create a PR, build will start
  3. wait 5 min and then commit changes to the same PR
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions