You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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.
Support Engineer, Atlassian