Scripting

Register Sns To Jenkins Webhook

  • Install Generic Webhook Trigger Plugin
  • Create Job in Jenkins triggered with generic webhook plugin
  • Configure plugin to expect a token
  • Configure plugin to output posted data
  • Configure build option to run a shell and echo something
  • Create Topic in SNS

https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.subscribe.html

When you save this, it will POST to Jenkins

  • Find the console log in jenkins

Grab/copy the SubscribeURL? value

  • Go to the SNS Topic and click 'Confirm Subcription'
  • Paste the URL into the box that comes up. This should confirm and you are ready to use