gitlab-plugin
gitlab-plugin copied to clipboard
Fix for Issue-1140 - cancel running jobs on merge request update when source branch is same
fixes https://github.com/jenkinsci/gitlab-plugin/issues/1140
I don't think disableConcurrentBuilds is an adequate alternative to the functionality from this PR. When multiple Merge Request are triggering the same job, I don't want to just cancel any running build, only those which were triggered from the same MR and are thus outdated. From looking at disableConcurrentBuilds(abortPrevious: true), any running build will be aborted. The GitLab plugin already has this function, but only for pending builds.