Our current plugin type is "notifier", which means that we are extending the TeamCity NotificatorAdapter class and overriding the methods there to define what to do when we are notified about builds succeeding or failing. With the current approach, there's no way to get a notification when a build is canceled instead, therefore I'm switching to define the plugin as a BuildServerAdapter, which allows us to be notified also on canceled builds (via the buildInterrupted() method).
Review checklist
[x] I have added unit tests if applicable
[x] (Only for critical changes) I have tested that the changes work in a TeamCity server
What does this PR do?
Our current plugin type is "notifier", which means that we are extending the TeamCity
NotificatorAdapter
class and overriding the methods there to define what to do when we are notified about builds succeeding or failing. With the current approach, there's no way to get a notification when a build is canceled instead, therefore I'm switching to define the plugin as aBuildServerAdapter
, which allows us to be notified also on canceled builds (via thebuildInterrupted()
method).Review checklist