Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57956

Cancel outdated jobs not working properly with multiple jobs on the same pull request

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.180
      stash-pullrequest-builder-plugin 1.9

      The bug (with pull request which resolves it) has been posted some time ago in the old repo issue page: https://github.com/nemccarthy/stash-pullrequest-builder-plugin/issues/121

      Issue description by jordijansen:

      Hi,

      I'm having a issue using the "Cancel outdated jobs" option. I'm having two job definitions that built the same repository (so they get triggered on the same Pull Requests, however they do two completly different things). When I have the option "Cancel outdated jobs" activated it will also cancel the jobs of the other job definition.

      For example:
      Lets say I have have jobs A and B. I create a PullRequest, Job A is added to the queue. A little while later Job B is added to the queue because it triggers on the same repository/pull request. Job B cancels Job A because the Cancel outdated jobs option is activated.

      I think it should only cancel the Jobs that are of the same definition (Job A may only cancel jobs of Job A type).

          [JENKINS-57956] Cancel outdated jobs not working properly with multiple jobs on the same pull request

          tubus the repository you mention is abandoned and outside of control of the jenkins project.
          Please feel free to re-submit the PR to the official repository at https://github.com/jenkinsci/stash-pullrequest-builder-plugin

          This functionality has been moved to StashRepository. We also require some basic unit test coverage for new changes

          Jakub Bochenski added a comment - tubus the repository you mention is abandoned and outside of control of the jenkins project. Please feel free to re-submit the PR to the official repository at https://github.com/jenkinsci/stash-pullrequest-builder-plugin This functionality has been moved to StashRepository . We also require some basic unit test coverage for new changes

            jbochenski Jakub Bochenski
            tubus Bartlomiej Poleszak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: