Class MergeRequestBuildHandler
java.lang.Object
com.dabsquared.gitlabjenkins.trigger.handler.MergeRequestBuildHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSurfaced in the build log so users understand why the build was killed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelPendingBuilds(Job<?, ?> job, Integer projectId, String branch) voidcancelRunningBuilds(Job<?, ?> job, Integer projectId, String sourceBranch) Aborts in-flight builds ofjobwhoseGitLabWebHookCausematches the given source project id and source branch.static StringresolvePendingBuildName(Job<?, ?> job)
-
Constructor Details
-
MergeRequestBuildHandler
public MergeRequestBuildHandler()
-
-
Method Details
-
cancelPendingBuilds
-
cancelRunningBuilds
Aborts in-flight builds ofjobwhoseGitLabWebHookCausematches the given source project id and source branch. Intended to be invoked when a merge request is updated and the user has opted in viacancelRunningBuildsOnUpdate. -
resolvePendingBuildName
-