Hello Team,
I am exploring the functions of Opsgenie for my team. I understand that Jenkins Integration can forward Jenkins build failure alert to Opsgenie. But I am wondering whether we can use Action Channels to communicate with Jenkins, and execute Jenkins jobs to mitigate when certain alerts fire? If yes, is there any guidance on how to set this up in Action Channels? Any help would be appreciated.
Hi @6628101Fy_ ,
This is Darryl. I am here to help. 😃
Understand that you would like to know if it's possible to set up an Opsgenie Action to automatically execute Jenkins jobs to mitigate the issue.
In short, there is no direct built-in Action Channel for this purpose.
However, if Jenkins supports Webhook trigger, I would suggest setting up the built-in REST Endpoint action channel or OEC action channel to achieve the goal.
Please read through this documentation regarding the general process to Set up Opsgenie actions.
If Jenkins supports Webhook trigger and it can provide a Webhook endpoint URL, you may set up the REST Endpoint action channel and an Action based on it to trigger the action when certain alerts are matched.
If
You may consider setting up the OEC action channel and host an OEC service on your own endpoint as an interim handler to capture the data from Opsgenie, and use your own crafted script to parse the data and adjust it to the acceptable structure by Jenkins and send it over.
Here is the collection of the sample data payload sent from Opsgenie to the OEC host.
Hope this helps and if there is any further request, please feel free to reach out to Opsgenie Support.
Kind regards,
Darryl Lee
Support Engineer, Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.