So, i'm building a new plugin for teamcity as a Build Feature.
Right now I have it being triggered like this. With a listener for the buildFinished.
public BuildStatusListener(@NotNull final EventDispatcher<BuildServerListener> listener,
@NotNull final ChangeStatusUpdater updater)
this.updater = updater;
public void buildFinished(SRunningBuild build)
And inside I basically iterate through the build features to check if my feature is active.
for (SBuildFeatureDescriptor feature : buildType.getResolvedSettings().getBuildFeatures())
Now, is there a better way to do this? I don't really like this approach. Seems a bit hammered.
I don't want my code to be executed after every single build. Is there a listener or trigger that only applies IF my Build Feature is active?