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
  • Field Details

  • 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 interface WebHookTriggerHandler<H extends WebHook>
    • getTriggerType

      protected abstract String getTriggerType()
    • isCiSkip

      protected abstract boolean isCiSkip(H hook)
    • createActions

      protected Action[] createActions(Job<?,?> job, H hook)
    • cancelPendingBuildsIfNecessary

      protected void cancelPendingBuildsIfNecessary(Job<?,?> job, H hook)
    • retrieveCauseData

      protected abstract CauseData retrieveCauseData(H hook)
    • getSourceBranch

      protected abstract String getSourceBranch(H hook)
    • getTargetBranch

      protected abstract String getTargetBranch(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)
    • scheduleBuild

      protected void scheduleBuild(Job<?,?> job, Action[] actions)