Class NotiferStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
io.notifer.jenkins.NotiferStep
- All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, Serializable
Pipeline step for sending notifications to Notifer.
Usage in Jenkinsfile:
notifer(
credentialsId: 'my-topic-token',
topic: 'ci-notifications',
message: 'Build completed',
title: 'Jenkins Build',
priority: 3,
tags: ['jenkins', 'build']
)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor for the step.Nested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionNotiferStep(String credentialsId, String topic) Constructor with required parameters. -
Method Summary
Modifier and TypeMethodDescriptionintgetTags()getTitle()getTopic()booleanvoidsetFailOnError(boolean failOnError) voidsetMessage(String message) voidsetPriority(int priority) voidSetter that accepts both String and List from Pipeline scripts.voidorg.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
NotiferStep
-
-
Method Details
-
getCredentialsId
-
getTopic
-
getMessage
-
getTitle
-
getPriority
public int getPriority() -
getTags
-
isFailOnError
public boolean isFailOnError() -
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. -
setFailOnError
@DataBoundSetter public void setFailOnError(boolean failOnError) -
start
-