I have been trying to develop a plugin which implements the Bamboo CustomBuildCompleteAction module.
I wish to trace my plugin code using IDEA and have started the Bamboo instance from the command line - atlas-debug --product bamboo. Running IDEA in debug mode informs me that it has successfully connected the debug port.
Having placed a breakpoint at the first line of code in my override of the CustomBuildCompleteAction.run() method, I would expect to see it triggered upon successful completion of a manually triggered build. However I do not. Instead, I see in the Bamboo .log the following:
ERROR [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-13] [NamedThreadFactory] Uncaught exception in thread AtlassianEvent::0-BAM::EVENTS:pool-2-thread-13
java.lang.ClassCastException: co.nz.xxxxx.bamboo.plugins.PostBuildCompleteNotifier cannot be cast to com.atlassian.bamboo.build.CustomPostBuildCompletedAction
Can anyone assist me to resolve this? What do I need to add/modify to ensure that my implementation of the CustomPostBuildCompletedAction is cast-able?