Class 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.
    • 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 class org.jenkinsci.plugins.workflow.steps.Step
        Throws:
        Exception
      • getJson

        public String getJson()
        Returns:
        the json payload
      • getRoutingKey

        public String getRoutingKey()
        Returns:
        The routing key.