Based on the Mattermost plugin which was a fork of the Slack plugin which was a fork of the HipChat plugin which was a fork of the Campfire plugin.
Includes Jenkins Pipeline support:
sqsSend color: 'good', message: 'Message from Jenkins Pipeline'
- Create an AWS SQS queue.
- Install this plugin on your Jenkins server.
- Configure this plugin.
- Add it as a Post-build action in your Jenkins job.
It will send a message to your specified AWS SQS queue in the following format:
{
"QueueUrl": "https://queue.amazonaws.com/1234567890/your-queue",
"MessageBody": "Configurable job message",
"MessageAttributes": {
"user": {
"DataType": "String",
"StringValue": "Jenkins"
},
"room": {
"DataType": "String",
"StringValue": "#off-topic"
}
},
"DelaySeconds": 0
}
You can then read from your SQS queue and route messages accordingly.
Install Maven and JDK.
Run unit tests
mvn test
Create an HPI file to install in Jenkins (HPI file will be in target/sqs.hpi
).
mvn package