java.lang.Object
org.jenkinsci.plugins.githubautostatus.notifiers.BuildNotifier
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
GithubBuildNotifier, HttpNotifier, InfluxDbNotifier, StatsdNotifier

public abstract class BuildNotifier extends Object implements ExtensionPoint
A notification subscriber which can send build stats to a particular sink.
Author:
Jeff Pearce (GitHub jeffpearce)
  • Field Details

    • DEFAULT_LONG

      protected static final long DEFAULT_LONG
      Establishing a default long for use in getLong.
      See Also:
    • DEFAULT_STRING

      protected static final String DEFAULT_STRING
      Establishing a default string for use in notifiers.
      See Also:
  • Constructor Details

    • BuildNotifier

      public BuildNotifier()
  • Method Details

    • isEnabled

      public abstract boolean isEnabled()
      Determines whether this notifier is enabled.
      Returns:
      true if enabled; false otherwise
    • notifyBuildStageStatus

      public abstract void notifyBuildStageStatus(String jobName, BuildStage stageItem)
      Sends a state change with timing info.
      Parameters:
      jobName - the name of the job
      stageItem - stage item
    • notifyFinalBuildStatus

      public abstract void notifyFinalBuildStatus(BuildStage.State buildState, Map<String,Object> parameters)
      Sends a notification when a job is complete.
      Parameters:
      buildState - state indicating success or failure
      parameters - build parameters
    • wantsOutOfStageErrors

      public boolean wantsOutOfStageErrors()
      Get whether the notifier wants to know about errors that happen outside of a stage.
      Returns:
      whether the notifier wants to know about errors that happen outside of a stage
    • all

      public static ExtensionList<BuildNotifier> all()
    • getLong

      public long getLong(Map<String,Object> map, String mapKey)