public class IronMQNotifier
extends hudson.tasks.Notifier
implements jenkins.tasks.SimpleBuildStep
IronMQNotifier class.
Modifier and Type | Class and Description |
---|---|
static class |
IronMQNotifier.IronMQNotifierDescriptor |
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier and Type | Field and Description |
---|---|
boolean |
send_failure |
boolean |
send_success |
boolean |
send_unstable |
Constructor and Description |
---|
IronMQNotifier(hudson.util.Secret projectId,
hudson.util.Secret tokenId,
String queueName,
String preferredServerName,
boolean send_success,
boolean send_failure,
boolean send_unstable,
long expirySeconds)
DataBoundConstructor for IronMQNotifier.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultPreferredServerName()
Getter for the field
defaultPreferredServer . |
IronMQNotifier.IronMQNotifierDescriptor |
getDescriptor() |
Long |
getExpirySeconds()
Getter for the field
expirySeconds . |
String |
getJobName()
Getter for the field
jobName . |
String |
getPreferredServerName()
Getter for the field
preferredServerName . |
hudson.util.Secret |
getProjectId()
Getter for the field
projectId . |
String |
getQueueName()
Getter for the field
queueName . |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
hudson.util.Secret |
getTokenId()
Getter for the field
tokenId . |
boolean |
needsToRunAfterFinalized() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
protected int |
sendMessageToIronMQ() |
void |
setDefaultPreferredServerName(String defaultPreferredServerName)
Setter for the field
defaultPreferredServerName . |
void |
setExpirySeconds(Long expirySeconds)
Setter for the field
expirySeconds . |
void |
setPreferredServerName(String preferredServerName)
Setter for the field
preferredServerName . |
void |
setProjectId(hudson.util.Secret projectId)
Setter for the field
projectId . |
void |
setQueueName(String queueName)
Setter for the field
queueName . |
void |
setTokenId(hudson.util.Secret tokenId)
Setter for the field
tokenId . |
getProjectAction, getProjectActions, perform, perform, prebuild
public boolean send_success
public boolean send_failure
public boolean send_unstable
public void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws hudson.AbortException
perform
in interface jenkins.tasks.SimpleBuildStep
hudson.AbortException
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public IronMQNotifier.IronMQNotifierDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Notifier
protected int sendMessageToIronMQ() throws IOException
IOException
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class hudson.tasks.Publisher
public String getJobName()
Getter for the field jobName
.
String
object.public String getQueueName()
Getter for the field queueName
.
String
object.public void setQueueName(String queueName)
Setter for the field queueName
.
queueName
- a String
object.public hudson.util.Secret getProjectId()
Getter for the field projectId
.
Secret
object.public void setProjectId(hudson.util.Secret projectId)
Setter for the field projectId
.
projectId
- a Secret
object.public hudson.util.Secret getTokenId()
Getter for the field tokenId
.
Secret
object.public void setTokenId(hudson.util.Secret tokenId)
Setter for the field tokenId
.
tokenId
- a Secret
object.public Long getExpirySeconds()
Getter for the field expirySeconds
.
Long
object.public void setExpirySeconds(Long expirySeconds)
Setter for the field expirySeconds
.
expirySeconds
- a Long
object.public void setPreferredServerName(String preferredServerName)
Setter for the field preferredServerName
.
preferredServerName
- a String
object.public String getPreferredServerName()
Getter for the field preferredServerName
.
String
object.public String getDefaultPreferredServerName()
Getter for the field defaultPreferredServer
.
String
object.Copyright © 2016–2020. All rights reserved.