public class HipChatNotifier
extends hudson.tasks.Notifier
implements hudson.matrix.MatrixAggregatable
| Modifier and Type | Class and Description |
|---|---|
static class |
HipChatNotifier.DescriptorImpl |
static class |
HipChatNotifier.HipChatJobProperty
Deprecated.
The plugin configuration should be stored in
HipChatNotifier. This class only exists, so
configurations can be migrated for the build jobs. |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Constructor and Description |
|---|
HipChatNotifier(String token,
String room,
boolean startNotification,
boolean notifySuccess,
boolean notifyAborted,
boolean notifyNotBuilt,
boolean notifyUnstable,
boolean notifyFailure,
boolean notifyBackToNormal,
MatrixTriggerMode matrixTriggerMode,
String startJobMessage,
String completeJobMessage) |
| Modifier and Type | Method and Description |
|---|---|
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
String |
getCompleteJobMessage() |
HipChatNotifier.DescriptorImpl |
getDescriptor() |
MatrixTriggerMode |
getMatrixTriggerMode() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getResolvedRoom(hudson.model.AbstractBuild<?,?> build)
Return the room name defined in the job configuration, or if that's empty return the room name from the global
configuration.
|
String |
getRoom() |
String |
getStartJobMessage() |
String |
getToken() |
boolean |
isNotifyAborted() |
boolean |
isNotifyBackToNormal() |
boolean |
isNotifyFailure() |
boolean |
isNotifyNotBuilt() |
boolean |
isNotifySuccess() |
boolean |
isNotifyUnstable() |
boolean |
isStartNotification() |
boolean |
needsToRunAfterFinalized() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
void |
setCompleteJobMessage(String completeJobMessage) |
void |
setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode) |
void |
setNotifyAborted(boolean notifyAborted) |
void |
setNotifyBackToNormal(boolean notifyBackToNormal) |
void |
setNotifyFailure(boolean notifyFailure) |
void |
setNotifyNotBuilt(boolean notifyNotBuilt) |
void |
setNotifySuccess(boolean notifySuccess) |
void |
setNotifyUnstable(boolean notifyUnstable) |
void |
setRoom(String room) |
void |
setStartJobMessage(String startJobMessage) |
void |
setStartNotification(boolean startNotification) |
void |
setToken(String token) |
getProjectAction, getProjectActions, perform@DataBoundConstructor public HipChatNotifier(String token, String room, boolean startNotification, boolean notifySuccess, boolean notifyAborted, boolean notifyNotBuilt, boolean notifyUnstable, boolean notifyFailure, boolean notifyBackToNormal, MatrixTriggerMode matrixTriggerMode, String startJobMessage, String completeJobMessage)
public boolean isStartNotification()
public void setStartNotification(boolean startNotification)
public boolean isNotifySuccess()
public void setNotifySuccess(boolean notifySuccess)
public boolean isNotifyAborted()
public void setNotifyAborted(boolean notifyAborted)
public boolean isNotifyNotBuilt()
public void setNotifyNotBuilt(boolean notifyNotBuilt)
public boolean isNotifyUnstable()
public void setNotifyUnstable(boolean notifyUnstable)
public boolean isNotifyFailure()
public void setNotifyFailure(boolean notifyFailure)
public boolean isNotifyBackToNormal()
public void setNotifyBackToNormal(boolean notifyBackToNormal)
public MatrixTriggerMode getMatrixTriggerMode()
public void setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode)
public String getStartJobMessage()
public void setStartJobMessage(String startJobMessage)
public String getCompleteJobMessage()
public void setCompleteJobMessage(String completeJobMessage)
public String getRoom()
public void setRoom(String room)
public String getResolvedRoom(hudson.model.AbstractBuild<?,?> build)
build - The current build for which we need to get the room.public String getToken()
public void setToken(String token)
public HipChatNotifier.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Notifierpublic boolean needsToRunAfterFinalized()
needsToRunAfterFinalized in class hudson.tasks.Publisherpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic boolean prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
prebuild in interface hudson.tasks.BuildStepprebuild in class hudson.tasks.BuildStepCompatibilityLayerpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
createAggregator in interface hudson.matrix.MatrixAggregatableCopyright © 2004-2015. All Rights Reserved.