I'd like to add a Notifier at build configuration level (it's broadly speaking going to hit a REST API on another server to say that a build has started/completed/failed).
Is the correct way to do this to implement a BuildServerAdapter and listen for the various build state messages, keep track of which builds have notifications turned on and send the message myself?
Or is there an equivalent to NotificatorAdapter but without a User? The Slack Notifier on GitHub seems to imply that jetbrains.buildServer.notification.AdHocNotifier might have a method called
fun sendBuildRelatedNotification(message: String, runningBuild: SRunningBuild, parameters: MutableMap<String, String>)
that could be what I'm looking for, but I can't see any documentation on that anywhere? I was also trying to understand what the NotificationEventListener interface is for? It doesn't seem to be used by anything but could also be relevant.
Any pointers would be great - thank you!