Class NotiferNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
io.notifer.jenkins.NotiferNotifier
- All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep
Post-build action for sending notifications to Notifer.
Used in freestyle jobs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor for the notifier.Nested classes/interfaces inherited from class Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTags()getTitle()getTopic()booleanbooleanbooleanbooleanvoidperform(Run<?, ?> run, FilePath workspace, EnvVars envVars, Launcher launcher, TaskListener listener) voidsetMessage(String message) voidsetNotifyAborted(boolean notifyAborted) voidsetNotifyFailure(boolean notifyFailure) voidsetNotifySuccess(boolean notifySuccess) voidsetNotifyUnstable(boolean notifyUnstable) voidsetPriority(int priority) voidSetter that accepts both String and List from Pipeline scripts.voidMethods inherited from class Notifier
getDescriptorMethods inherited from class Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods inherited from interface SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
NotiferNotifier
-
-
Method Details
-
getCredentialsId
-
getTopic
-
getMessage
-
getTitle
-
getPriority
public int getPriority() -
getTags
-
isNotifySuccess
public boolean isNotifySuccess() -
isNotifyFailure
public boolean isNotifyFailure() -
isNotifyUnstable
public boolean isNotifyUnstable() -
isNotifyAborted
public boolean isNotifyAborted() -
setMessage
-
setTitle
-
setPriority
@DataBoundSetter public void setPriority(int priority) -
setTags
Setter that accepts both String and List from Pipeline scripts. Converts list to comma-separated string. -
setNotifySuccess
@DataBoundSetter public void setNotifySuccess(boolean notifySuccess) -
setNotifyFailure
@DataBoundSetter public void setNotifyFailure(boolean notifyFailure) -
setNotifyUnstable
@DataBoundSetter public void setNotifyUnstable(boolean notifyUnstable) -
setNotifyAborted
@DataBoundSetter public void setNotifyAborted(boolean notifyAborted) -
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars envVars, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-