Class MQMessageStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- com.sonymobile.jenkins.plugins.mq.mqnotifier.pipeline.MQMessageStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class MQMessageStep extends org.jenkinsci.plugins.workflow.steps.Step
Pipeline step to allowing publication of a MQ message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MQMessageStep.Descriptor
Standard Descriptor.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MQMessageStep(String json)
DataBoundConstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJson()
String
getRoutingKey()
void
setRoutingKey(String routingKey)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Constructor Detail
-
MQMessageStep
@DataBoundConstructor public MQMessageStep(String json)
DataBoundConstructor.- Parameters:
json
- mq message payload
-
-
Method Detail
-
setRoutingKey
@DataBoundSetter public void setRoutingKey(String routingKey)
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getJson
public String getJson()
- Returns:
- the json payload
-
getRoutingKey
public String getRoutingKey()
- Returns:
- The routing key.
-
-