项目作者: cfpb

项目描述 :
AWS SQS notifier plugin for Jenkins
高级语言: Java
项目地址: git://github.com/cfpb/jenkins-sqs-plugin.git
创建时间: 2017-04-20T16:13:21Z
项目社区:https://github.com/cfpb/jenkins-sqs-plugin

开源协议:Creative Commons Zero v1.0 Universal

下载


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:

  1. 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:

  1. {
  2. "QueueUrl": "https://queue.amazonaws.com/1234567890/your-queue",
  3. "MessageBody": "Configurable job message",
  4. "MessageAttributes": {
  5. "user": {
  6. "DataType": "String",
  7. "StringValue": "Jenkins"
  8. },
  9. "room": {
  10. "DataType": "String",
  11. "StringValue": "#off-topic"
  12. }
  13. },
  14. "DelaySeconds": 0
  15. }

You can then read from your SQS queue and route messages accordingly.

Developer instructions

Install Maven and JDK.

Run unit tests

  1. mvn test

Create an HPI file to install in Jenkins (HPI file will be in target/sqs.hpi).

  1. mvn package