Class AbstractWebHookTriggerHandler<H extends WebHook>
- java.lang.Object
-
- com.gitee.jenkins.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
Nested Classes Modifier and Type Class Description static class
AbstractWebHookTriggerHandler.BuildStatusUpdate
-
Field Summary
Fields Modifier and Type Field Description protected PendingBuildsHandler
pendingBuildsHandler
-
Constructor Summary
Constructors Constructor Description AbstractWebHookTriggerHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
cancelIncompleteBuildIfNecessary(Job<?,?> job, H hook)
protected 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 void
doStop(Run<?,?> build)
protected abstract String
getTargetBranch(H hook)
protected abstract String
getTriggerType()
void
handle(Job<?,?> job, H hook, BuildInstructionFilter buildInstructionFilter, boolean skipLastCommitHasBeenBuild, BranchFilter branchFilter, PullRequestLabelFilter pullRequestLabelFilter)
protected abstract boolean
isCiSkip(H hook, BuildInstructionFilter buildInstructionFilter)
protected abstract boolean
isCommitSkip(Job<?,?> job, H hook)
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 Detail
-
pendingBuildsHandler
protected PendingBuildsHandler pendingBuildsHandler
-
-
Method Detail
-
handle
public void handle(Job<?,?> job, H hook, BuildInstructionFilter buildInstructionFilter, boolean skipLastCommitHasBeenBuild, BranchFilter branchFilter, PullRequestLabelFilter pullRequestLabelFilter)
- Specified by:
handle
in interfaceWebHookTriggerHandler<H extends WebHook>
-
getTriggerType
protected abstract String getTriggerType()
-
isCiSkip
protected abstract boolean isCiSkip(H hook, BuildInstructionFilter buildInstructionFilter)
-
cancelPendingBuildsIfNecessary
protected void cancelPendingBuildsIfNecessary(Job<?,?> job, H hook)
-
cancelIncompleteBuildIfNecessary
protected void cancelIncompleteBuildIfNecessary(Job<?,?> job, H hook)
-
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
protected org.eclipse.jgit.transport.URIish retrieveUrIish(WebHook hook)
-
doStop
protected void doStop(Run<?,?> build) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
-