jenkinsci / jenkinsci/gitlab-branch-source-plugin
[JENKINS-66706] Add support for canceling pending builds on update
- Dominant language
- Java
- Stars
- 134
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
GitLab plugin supports canceling pending builds on merge request update. This saves time in projects where builds can stay long time in a build queue and you care only about the status of the newest commit.
Can it be added to the GitLab Branch Source Plugin?
Including the trigger directly in a pipeline doesn't work.
triggers {
gitlab(
cancelPendingBuildsOnUpdate: true
)
}
---
Originally reported by mh_cardlay, imported from: Add support for canceling pending builds on update
baymac
Raw content of original issue
GitLab plugin supports canceling pending builds on merge request update. This saves time in projects where builds can stay long time in a build queue and you care only about the status of the newest commit.
Can it be added to the GitLab Branch Source Plugin?
Including the trigger directly in a pipeline doesn't work.triggers {
gitlab(
cancelPendingBuildsOnUpdate: true
)
}
Contributor guide
Assessment
This issue has not been assessed yet.