Package io.cnaik
Class GoogleChatNotification
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- io.cnaik.GoogleChatNotification
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class GoogleChatNotification extends Notifier implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoogleChatNotification.Descriptor
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description GoogleChatNotification(String url, String message)
-
Method Summary
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
setMessageFormat
@DataBoundSetter public void setMessageFormat(Object messageFormat)
-
setSameThreadNotification
@DataBoundSetter public void setSameThreadNotification(boolean sameThreadNotification)
-
setThreadKey
@DataBoundSetter public void setThreadKey(String threadKey)
-
setNotifyAborted
@DataBoundSetter public void setNotifyAborted(boolean notifyAborted)
-
setNotifyFailure
@DataBoundSetter public void setNotifyFailure(boolean notifyFailure)
-
setNotifySingleFailure
@DataBoundSetter public void setNotifySingleFailure(boolean notifySingleFailure)
-
setNotifyRepeatedFailure
@DataBoundSetter public void setNotifyRepeatedFailure(boolean notifyRepeatedFailure)
-
setNotifyRegression
@DataBoundSetter public void setNotifyRegression(boolean notifyRegression)
-
setNotifyNotBuilt
@DataBoundSetter public void setNotifyNotBuilt(boolean notifyNotBuilt)
-
setNotifySuccess
@DataBoundSetter public void setNotifySuccess(boolean notifySuccess)
-
setNotifyUnstable
@DataBoundSetter public void setNotifyUnstable(boolean notifyUnstable)
-
setNotifyBackToNormal
@DataBoundSetter public void setNotifyBackToNormal(boolean notifyBackToNormal)
-
setSuppressInfoLoggers
@DataBoundSetter public void setSuppressInfoLoggers(boolean suppressInfoLoggers)
-
getUrl
public String getUrl()
-
getMessage
public String getMessage()
-
getMessageFormat
public MessageFormat getMessageFormat()
-
isSimpleMessageFormat
public boolean isSimpleMessageFormat()
-
isCardMessageFormat
public boolean isCardMessageFormat()
-
getThreadKey
public String getThreadKey()
-
isSameThreadNotification
public boolean isSameThreadNotification()
-
isNotifyAborted
public boolean isNotifyAborted()
-
isNotifyFailure
public boolean isNotifyFailure()
-
isNotifySingleFailure
public boolean isNotifySingleFailure()
-
isNotifyRepeatedFailure
public boolean isNotifyRepeatedFailure()
-
isNotifyRegression
public boolean isNotifyRegression()
-
isNotifyNotBuilt
public boolean isNotifyNotBuilt()
-
isNotifySuccess
public boolean isNotifySuccess()
-
isNotifyUnstable
public boolean isNotifyUnstable()
-
isNotifyBackToNormal
public boolean isNotifyBackToNormal()
-
isSuppressInfoLoggers
public boolean isSuppressInfoLoggers()
-
getTaskListener
public TaskListener getTaskListener()
-
setTaskListener
public void setTaskListener(TaskListener taskListener)
-
getWs
public FilePath getWs()
-
setWs
public void setWs(FilePath ws)
-
getBuild
public Run getBuild()
-
setBuild
public void setBuild(Run build)
-
getLogUtil
public LogUtil getLogUtil()
-
setLogUtil
public void setLogUtil(LogUtil logUtil)
-
getResponseMessageUtil
public ResponseMessageUtil getResponseMessageUtil()
-
setResponseMessageUtil
public void setResponseMessageUtil(ResponseMessageUtil responseMessageUtil)
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener)
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
-
perform
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener)
- Specified by:
perform
in interfaceSimpleBuildStep
-
getDescriptor
public GoogleChatNotification.Descriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
-