Skip to content

add some customized parameters into the Message Body which is published to RabbitMQ #1

Description

@crossany

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions