forked from mikewatt/jenkins-snsnotify-plugin
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in changes from nikos/snsnotify-plugin master branch.
- Loading branch information
Showing
8 changed files
with
152 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
target | ||
work | ||
|
||
# IntelliJ project files | ||
*.ipr | ||
*.iml | ||
*.iws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
snsnotify-plugin | ||
================ | ||
|
||
Sends build notifications to an AWS SNS topic as post-build step with | ||
customizable subject and message payload. | ||
|
||
1. `git clone https://github.com/jenkinsci/snsnotify-plugin` | ||
2. `cd snsnotify-plugin` | ||
3. `mvn hpi:run` compile and start Jetty with the Plugin ready to be used | ||
|
||
Create an installable artifact: | ||
|
||
1. `mvn clean install` | ||
2. (wait for mvn to download the internet) | ||
3. Manage Jenkins > Plugins > Advanced > Upload ```./target/snsnotify.hpi``` | ||
4. Restart Jenkins ([$JENKINS_URL]/restart) | ||
|
||
Now, login to AWS and do the following: | ||
|
||
1. Create an SNS Topic, subscribe a target SQS queue (or create subscription via email etc.) | ||
2. Right-click on targeted SQS queue to confirm subscription | ||
|
||
Finally, back to Jenkins... | ||
|
||
1. Manage Jenkins > Configure Jenkins to use AWS creds and newly created Topic ARN | ||
2. As part of your job: add post-build step for SNS notification, optionally configure subject and message (you can make use of build and environment variables, which do get substituted), resp. override Topic ARN (if you do not want to stick with globally configured one). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div> | ||
Send failed/unstable build notifications to an Amazon SNS Topic | ||
Send build notifications to an Amazon SNS Topic | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ain/resources/org/jenkinsci/plugins/snsnotify/AmazonSNSNotifier/help-messageTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div> | ||
Specifies the message (payload) as published to the SNS topic. | ||
Build variables can be used and are resolved before message is sent. | ||
</div> |
4 changes: 4 additions & 0 deletions
4
...ain/resources/org/jenkinsci/plugins/snsnotify/AmazonSNSNotifier/help-subjectTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div> | ||
Specifies the subject of the message published to the SNS topic. | ||
Build variables can be used and are resolved before message is sent. | ||
</div> |