rinrinne/rabbitmq-build-trigger-plugin — pull request #2 by crossany (2013-08-16 11:12:31+00:00)
Title: add some customized parameters into the Message Body which is published to RabbitMQ

hello
I just tested rabbitmq-build-trigger-plugin in my jenkins。
build result message is published to my specified queue in RabbitMQ
Meesage body:
{
"project": "PROJECTNAME",
"number": "BUILDNUMBER",
"status": "SUCCESS|FAILURE|UNSTABLE.."
}

In My jenkins job always have some other customized parameters。

Could you add some infomation into the message body like below,

Meesage body:
{
"project": "PROJECTNAME",
"number": "BUILDNUMBER",
"status": "SUCCESS|FAILURE|UNSTABLE.."
"parameter": [
{
"name": "PARAMETERNAME",
"value": "VALUE"
},
{
"name": "PARAMETERNAME2",
"value": "VALUE2"
}
"token": "TOKEN",
}

and add all the available environment variables into the message body.