public class NotifyEventsPublisher
extends hudson.tasks.Notifier
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
NotifyEventsPublisher.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
NotifyEventsPublisher(String token,
String title,
String message,
Boolean attachBuildLog,
String attachment,
boolean onSuccess,
boolean onSuccessCustom,
String onSuccessCustomTitle,
String onSuccessCustomMessage,
String onSuccessCustomPriority,
String onSuccessCustomLevel,
Boolean onSuccessCustomAttachBuildLog,
String onSuccessCustomAttachment,
boolean onUnstable,
boolean onUnstableCustom,
String onUnstableCustomTitle,
String onUnstableCustomMessage,
String onUnstableCustomPriority,
String onUnstableCustomLevel,
Boolean onUnstableCustomAttachBuildLog,
String onUnstableCustomAttachment,
boolean onFailure,
boolean onFailureCustom,
String onFailureCustomTitle,
String onFailureCustomMessage,
String onFailureCustomPriority,
String onFailureCustomLevel,
Boolean onFailureCustomAttachBuildLog,
String onFailureCustomAttachment,
boolean onAborted,
boolean onAbortedCustom,
String onAbortedCustomTitle,
String onAbortedCustomMessage,
String onAbortedCustomPriority,
String onAbortedCustomLevel,
Boolean onAbortedCustomAttachBuildLog,
String onAbortedCustomAttachment) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public NotifyEventsPublisher(String token, String title, String message, Boolean attachBuildLog, String attachment, boolean onSuccess, boolean onSuccessCustom, String onSuccessCustomTitle, String onSuccessCustomMessage, String onSuccessCustomPriority, String onSuccessCustomLevel, Boolean onSuccessCustomAttachBuildLog, String onSuccessCustomAttachment, boolean onUnstable, boolean onUnstableCustom, String onUnstableCustomTitle, String onUnstableCustomMessage, String onUnstableCustomPriority, String onUnstableCustomLevel, Boolean onUnstableCustomAttachBuildLog, String onUnstableCustomAttachment, boolean onFailure, boolean onFailureCustom, String onFailureCustomTitle, String onFailureCustomMessage, String onFailureCustomPriority, String onFailureCustomLevel, Boolean onFailureCustomAttachBuildLog, String onFailureCustomAttachment, boolean onAborted, boolean onAbortedCustom, String onAbortedCustomTitle, String onAbortedCustomMessage, String onAbortedCustomPriority, String onAbortedCustomLevel, Boolean onAbortedCustomAttachBuildLog, String onAbortedCustomAttachment)
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public String getToken()
public void setToken(String token)
public void setToken(hudson.util.Secret token)
public String getTitle()
public void setTitle(String title)
public String getMessage()
public void setMessage(String message)
public Boolean getAttachBuildLog()
public void setAttachBuildLog(Boolean attachBuildLog)
public String getAttachment()
public void setAttachment(String attachment)
public boolean getOnSuccess()
public void setOnSuccess(boolean onSuccess)
public boolean getOnSuccessCustom()
public void setOnSuccessCustom(boolean custom)
public String getOnSuccessCustomTitle()
public void setOnSuccessCustomTitle(String title)
public String getOnSuccessCustomMessage()
public void setOnSuccessCustomMessage(String message)
public String getOnSuccessCustomPriority()
public void setOnSuccessCustomPriority(String priority)
public String getOnSuccessCustomLevel()
public void setOnSuccessCustomLevel(String level)
public Boolean getOnSuccessCustomAttachBuildLog()
public void setOnSuccessCustomAttachBuildLog(Boolean onSuccessCustomAttachBuildLog)
public String getOnSuccessCustomAttachment()
public void setOnSuccessCustomAttachment(String onSuccessCustomAttachment)
public boolean getOnUnstable()
public void setOnUnstable(boolean onUnstable)
public boolean getOnUnstableCustom()
public void setOnUnstableCustom(boolean custom)
public String getOnUnstableCustomTitle()
public void setOnUnstableCustomTitle(String title)
public String getOnUnstableCustomMessage()
public void setOnUnstableCustomMessage(String message)
public String getOnUnstableCustomPriority()
public void setOnUnstableCustomPriority(String priority)
public String getOnUnstableCustomLevel()
public void setOnUnstableCustomLevel(String level)
public Boolean getOnUnstableCustomAttachBuildLog()
public void setOnUnstableCustomAttachBuildLog(Boolean onUnstableCustomAttachBuildLog)
public String getOnUnstableCustomAttachment()
public void setOnUnstableCustomAttachment(String onUnstableCustomAttachment)
public boolean getOnFailure()
public void setOnFailure(boolean onFailure)
public boolean getOnFailureCustom()
public void setOnFailureCustom(boolean custom)
public String getOnFailureCustomTitle()
public void setOnFailureCustomTitle(String title)
public String getOnFailureCustomMessage()
public void setOnFailureCustomMessage(String message)
public String getOnFailureCustomPriority()
public void setOnFailureCustomPriority(String priority)
public String getOnFailureCustomLevel()
public void setOnFailureCustomLevel(String level)
public Boolean getOnFailureCustomAttachBuildLog()
public void setOnFailureCustomAttachBuildLog(Boolean onFailureCustomAttachBuildLog)
public String getOnFailureCustomAttachment()
public void setOnFailureCustomAttachment(String onFailureCustomAttachment)
public boolean getOnAborted()
public void setOnAborted(boolean onAborted)
public boolean getOnAbortedCustom()
public void setOnAbortedCustom(boolean custom)
public String getOnAbortedCustomTitle()
public void setOnAbortedCustomTitle(String title)
public String getOnAbortedCustomMessage()
public void setOnAbortedCustomMessage(String message)
public String getOnAbortedCustomPriority()
public void setOnAbortedCustomPriority(String priority)
public String getOnAbortedCustomLevel()
public void setOnAbortedCustomLevel(String level)
public Boolean getOnAbortedCustomAttachBuildLog()
public void setOnAbortedCustomAttachBuildLog(Boolean onAbortedCustomAttachBuildLog)
public String getOnAbortedCustomAttachment()
public void setOnAbortedCustomAttachment(String onAbortedCustomAttachment)
public NotifyEventsPublisher.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Notifier
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath filePath, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener taskListener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
Copyright © 2016–2021. All rights reserved.