How can my TeamCity plugin detect if the build is private?

I implement the following interface in my notification plugin:

  • BuildServerListener


Then I implement this method so I can report failed builds:

  • public void buildFinished(SRunningBuild sRunningBuild)


I don't want to generate a notification when the failed build is a private build. The following docs detail a value I can check to determine is the build is private:


My questions is how do I get access to the value of BUILD_IS_PERSONAL from my buildFinished() method?

1 comment
Comment actions Permalink

Ha! Found it:

    @Override
    public void buildFinished(SRunningBuild sRunningBuild) {
        if (sRunningBuild.getBuildType().isPersonal()) return;
        . . .
    }

0

Please sign in to leave a comment.