public abstract class AbstractWebHookTriggerHandler<H extends WebHook> extends Object implements WebHookTriggerHandler<H>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractWebHookTriggerHandler.BuildStatusUpdate |
Modifier and Type | Field and Description |
---|---|
protected PendingBuildsHandler |
pendingBuildsHandler |
Constructor and Description |
---|
AbstractWebHookTriggerHandler() |
Modifier and Type | Method and Description |
---|---|
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 abstract String |
getSourceBranch(H hook) |
protected abstract String |
getTargetBranch(H hook) |
protected abstract String |
getTriggerType() |
void |
handle(Job<?,?> job,
H hook,
boolean ciSkip,
BranchFilter branchFilter,
MergeRequestLabelFilter mergeRequestLabelFilter) |
protected abstract boolean |
isCiSkip(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) |
protected PendingBuildsHandler pendingBuildsHandler
public void handle(Job<?,?> job, H hook, boolean ciSkip, BranchFilter branchFilter, MergeRequestLabelFilter mergeRequestLabelFilter)
handle
in interface WebHookTriggerHandler<H extends WebHook>
protected abstract String getTriggerType()
protected abstract boolean isCiSkip(H hook)
protected abstract hudson.plugins.git.RevisionParameterAction createRevisionParameter(H hook, hudson.plugins.git.GitSCM gitSCM) throws NoRevisionToBuildException
NoRevisionToBuildException
protected abstract AbstractWebHookTriggerHandler.BuildStatusUpdate retrieveBuildStatusUpdate(H hook)
protected org.eclipse.jgit.transport.URIish retrieveUrIish(WebHook hook)
Copyright © 2016–2022. All rights reserved.