Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,930
Community Members
 
Community Events
176
Community Groups

Using Jenkins for issue mitigation

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.

1 answer

0 votes
Darryl Lee Atlassian Team Jul 07, 2022

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.


REST Endpoint action channel

Documentation.

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.

OEC action channel

Documentation.

If

  • Jenkins isn't capable of generating a Webhook URL but still interactable with API calls.
  • Jenkins can generate a Webhook URL but the data payload sent from the REST Endpoint action channel isn't acceptable by Jenkins and requires adjustments.

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events