gitlab-plugin icon indicating copy to clipboard operation
gitlab-plugin copied to clipboard

Fix for Issue-1140 - cancel running jobs on merge request update when source branch is same

Open RemigiuszDudek opened this issue 3 years ago • 3 comments

RemigiuszDudek avatar Mar 26 '22 09:03 RemigiuszDudek

fixes https://github.com/jenkinsci/gitlab-plugin/issues/1140

RemigiuszDudek avatar Aug 31 '22 04:08 RemigiuszDudek

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.

dwzg avatar Apr 03 '23 13:04 dwzg