Pass SQS messages to webhook plugin#18
Pass SQS messages to webhook plugin#18thomaslorentsen wants to merge 1 commit intojenkinsci:masterfrom giffgaff:master
Conversation
Prevents a null error when an SQS message can be treated as a SNS message which does not contain the expected json payload
|
Can someone please review and merge this? we seem to be hitting this issue. |
|
@kramachandran1980 did you have a chance to test/regressions test this PR ? I've stopped using this plugin a while ago and I am not able to test it. |
|
@kramachandran1980 We managed to get round this issue by only passing the GitHook messages to SNS. You just need to ensure that the header That should get around the problem without this fix. |
|
@nemo83 - No. not yet. I am new to building plugins and trying to build and deploy it in my linux host which runs jenkins. If there is any way, you can provide the jar file - i can test it quickly in my setup. @thomaslorentsen: My github webhook payload contains: X-GitHub-Event: push. My setup is: |
|
@kramachandran1980 yes, the error is because you are inserting directly into SQS with GitHub. Due to GitHub deprecating the feature, I’m now pointing a webhook to a AWS Lambda app that puts the payload into an SNS queue with the X-GitHub-Event added to the header. This is allowing me to not expose my Jenkins to the Internet. |
Prevents a null value error when an SQS message can be treated
as a SNS message which does not contain the expected
json payload