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,297,397
Community Members
 
Community Events
165
Community Groups

How do I configure Opsgenie with jenkinsfile to get failure alerts only when master branch fails

Edited

Presently, we get Opsgenie failure alert for failures in dev, stag, and master  github branches. However, I would like to filter this alert to happen only when there is  a failure in the master branch using Jenkinsfile.

1 answer

0 votes
Nick H Atlassian Team Jun 06, 2022

Hi @Kingsley Chidozie njoku ,

The Standard and Enterprise plans provide an Advanced tab to control which Jenkins alerts create, or do not create Opsgenie alerts:

jenkins1.jpg

 

You'd want to edit or configure a Create Alert action that only creates an alert that matches on the data being parsed in the payload when for example, a failure in the master branch:

jenkins2.jpg

 

If you do not see this tab then it's a restriction with your plan, and there really isn't much of a way to control what does / not create an alert from Jenkins.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

33 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you