Missed Team ’24? Catch up on announcements here.

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

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

0 votes
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
AUG Leaders

Atlassian Community Events