This is a cross post from community.atlassian.com with some links removed because of the link restriction on new users: Create a Bamboo Event Listener
I’m trying to create a Bamboo event listener for DeploymentFinishedEvent with the Atlassian SDK. Unfortunately, the documentation for creating a Bamboo event listener seems to be out of date, as HibernateEventListener is deprecated as of Bamboo 5.6 and the alternative that is recommended by the Java Docs is an Annotation.
What is the correct approach for creating an event listener for Bamboo? I see that Alexey Chystoprudov posted this block of code yesterday (https://community.atlassian.com/t5/Bamboo-questions/How-do-I-register-an-event-listener-in-Bamboo/qaq-p/638995) but the technique used doesn’t appear to be documented anywhere.
<bambooEventListener key="environmentDependencyListener"
class="com.test.MyListener"/>
public class MyListener {
@EventListener
public void onChainCompleted(final ChainCompletedEvent event) {
System.out.println("chain complete ");
}
}