Trigger the job in response to messages on a message bus.

NOTE: To actually use any of the parameters discussed here, they must be defined in the job config, or in the pipeline .

ActiveMQ

The following parameters are passed to the job if the selected Messaging Provider uses ActiveMQ:

CI_MESSAGE
The whole message body. The format varies depending on the type. For TextMessage, the body is simply copied. For BytesMessage the body is decoded into a String, as defined by the byte[] constructor . For MapMessage the body is converted to a json object String as defined by jackson ObjectWriter .
MESSAGE_HEADERS
All String-type JMS Message properties , converted to a json object String as defined by jackson ObjectWriter .

Additionally, all String-type JMS Message properties are converted to individual job parameters (NAME=VALUE).

FedMsg

The following parameters are passed to the job if the selected Messaging Provider uses FedMsg:

CI_MESSAGE
The whole message body, converted to a json object String as defined by json-lib JSONObject.toString() .