Class AbstractWebHookTriggerHandler<H extends WebHook>
java.lang.Object
com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler<H>
- All Implemented Interfaces:
WebHookTriggerHandler<H>
public abstract class AbstractWebHookTriggerHandler<H extends WebHook>
extends Object
implements WebHookTriggerHandler<H>
- Author:
- Robin Müller
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cancelPendingBuildsIfNecessary
(Job<?, ?> job, H hook) protected Action[]
createActions
(Job<?, ?> job, H hook) protected abstract hudson.plugins.git.RevisionParameterAction
createRevisionParameter
(H hook, hudson.plugins.git.GitSCM gitSCM) protected abstract String
getSourceBranch
(H hook) protected abstract String
getTargetBranch
(H hook) protected abstract String
void
handle
(Job<?, ?> job, H hook, boolean ciSkip, BranchFilter branchFilter, MergeRequestLabelFilter mergeRequestLabelFilter) protected abstract boolean
protected abstract AbstractWebHookTriggerHandler.BuildStatusUpdate
retrieveBuildStatusUpdate
(H hook) protected abstract CauseData
retrieveCauseData
(H hook) protected org.eclipse.jgit.transport.URIish
retrieveUrIish
(WebHook hook) protected void
scheduleBuild
(Job<?, ?> job, Action[] actions)
-
Field Details
-
pendingBuildsHandler
-
-
Constructor Details
-
AbstractWebHookTriggerHandler
public AbstractWebHookTriggerHandler()
-
-
Method Details
-
handle
public void handle(Job<?, ?> job, H hook, boolean ciSkip, BranchFilter branchFilter, MergeRequestLabelFilter mergeRequestLabelFilter) - Specified by:
handle
in interfaceWebHookTriggerHandler<H extends WebHook>
-
getTriggerType
-
isCiSkip
-
createActions
-
cancelPendingBuildsIfNecessary
-
retrieveCauseData
-
getSourceBranch
-
getTargetBranch
-
createRevisionParameter
protected abstract hudson.plugins.git.RevisionParameterAction createRevisionParameter(H hook, hudson.plugins.git.GitSCM gitSCM) throws NoRevisionToBuildException - Throws:
NoRevisionToBuildException
-
retrieveBuildStatusUpdate
protected abstract AbstractWebHookTriggerHandler.BuildStatusUpdate retrieveBuildStatusUpdate(H hook) -
retrieveUrIish
-
scheduleBuild
-