Skip to content

Cancel outdated jobs not working with multiple jobs. #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jordijansen opened this issue Mar 22, 2017 · 2 comments
Open

Cancel outdated jobs not working with multiple jobs. #121

jordijansen opened this issue Mar 22, 2017 · 2 comments

Comments

@jordijansen
Copy link

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).

@jordijansen
Copy link
Author

I created a pull request to fix this issue if anybody is interested.

#122

@bartek-poleszak
Copy link

I've posted the issue in the jenkins Jira:
https://issues.jenkins-ci.org/browse/JENKINS-57956

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants