Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to react on build state change?

Roth, Thomas May 7, 2024

Hi together, 

i would like to trigger a groovy script in bitbucket when a build state is set to success or failure, but i found no event to react on at scriptrunner listener --> custom listener. Has someone an idea?

Thank you!

1 answer

1 accepted

1 vote
Answer accepted
Roth, Thomas May 7, 2024

solved by myself.

for a reason i don't know the 

RepositoryBuildStatusSetEvent
can not be chosen as trigger, but i used the parent class
ApplicationEvent
and used the code
if (applicableEvent instanceof RepositoryBuildStatusSetEvent) {...
not very nice but works.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events