Skip to content

DalavanCloud/jenkins-sqs-plugin

 
 

Repository files navigation

SQS plugin for Jenkins Build Status

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'

Jenkins Instructions

  1. Create an AWS SQS queue.
  2. Install this plugin on your Jenkins server.
  3. Configure this plugin.
  4. 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.

Developer instructions

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

About

AWS SQS notifier plugin for Jenkins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.7%
  • HTML 5.3%