Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:24:06+00:00 2026-06-03T08:24:06+00:00

So, I’ve created a simple team city notifier which will just log some information

  • 0

So, I’ve created a simple team city notifier which will just log some information to my C drive at the moment, but whenever a build is triggered on TeamCity, the notifier doesn’t run. I am not sure what I am missing. Here’s what I have thus far. The MyLogger class just gets a simple java.util.logging.Logger object that creates a log on the C drive.

Here is my implementation of the Notificator interface:

import java.util.Collection;
import java.util.Set;
import java.util.logging.Logger;

import jetbrains.buildServer.Build;
import jetbrains.buildServer.notification.Notificator;
import jetbrains.buildServer.notification.NotificatorRegistry;
import jetbrains.buildServer.responsibility.ResponsibilityEntry;
import jetbrains.buildServer.responsibility.TestNameResponsibilityEntry;
import jetbrains.buildServer.serverSide.SBuildType;
import jetbrains.buildServer.serverSide.SProject;
import jetbrains.buildServer.serverSide.SRunningBuild;
import jetbrains.buildServer.serverSide.STest;
import jetbrains.buildServer.serverSide.mute.MuteInfo;
import jetbrains.buildServer.tests.TestName;
import jetbrains.buildServer.users.SUser;
import jetbrains.buildServer.vcs.VcsRoot;

public class TestNotificator implements Notificator {

    private Logger log;

    public TestNotificator(NotificatorRegistry nR) {
        log = MyLogger.getLogger();
        log.info("Registering the Notificator");
        nR.register(this);
    }

    public void doNotifications(SRunningBuild arg0) {
        log.info("Do Notifications has been called");
    }

    @Override
    public String getDisplayName() {
        return "Test Notificator";
    }

    @Override
    public String getNotificatorType() {
        return "testNotificator";
    }

    @Override
    public void notifyBuildFailed(SRunningBuild arg0, Set<SUser> arg1) {
        log.info("Build has failed");
        doNotifications(arg0);

    }

    @Override
    public void notifyBuildFailedToStart(SRunningBuild arg0, Set<SUser> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyBuildFailing(SRunningBuild arg0, Set<SUser> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyBuildProbablyHanging(SRunningBuild arg0, Set<SUser> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyBuildStarted(SRunningBuild arg0, Set<SUser> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyBuildSuccessful(SRunningBuild arg0, Set<SUser> arg1) {
        log.info("Build was Successfull");
        doNotifications(arg0);
    }

    @Override
    public void notifyLabelingFailed(Build arg0, VcsRoot arg1, Throwable arg2,
            Set<SUser> arg3) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyResponsibleAssigned(SBuildType arg0, Set<SUser> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyResponsibleAssigned(TestNameResponsibilityEntry arg0,
            TestNameResponsibilityEntry arg1, SProject arg2, Set<SUser> arg3) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyResponsibleAssigned(Collection<TestName> arg0,
            ResponsibilityEntry arg1, SProject arg2, Set<SUser> arg3) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyResponsibleChanged(SBuildType arg0, Set<SUser> arg1) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyResponsibleChanged(TestNameResponsibilityEntry arg0,
            TestNameResponsibilityEntry arg1, SProject arg2, Set<SUser> arg3) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyResponsibleChanged(Collection<TestName> arg0,
            ResponsibilityEntry arg1, SProject arg2, Set<SUser> arg3) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyTestsMuted(Collection<STest> arg0, MuteInfo arg1,
            Set<SUser> arg2) {
        // TODO Auto-generated method stub

    }

    @Override
    public void notifyTestsUnmuted(Collection<STest> arg0, MuteInfo arg1,
            SUser arg2, Set<SUser> arg3) {
        // TODO Auto-generated method stub

    }

}

Here’s the build-server-plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans default-autowire="constructor">
  <bean id="testNotifier" class="com.testnot.TestNotificator"/>
</beans>

I package up the class and build-server-plugin.xml together in the same jar. In the jar there are two separate directories there is com.testnot and META-INF. Maybe I’m not packaging them up correctly. I’m not entirely sure what I’m doing wrong. Any help what-so-ever would be greatly appreciated. I have been using the example found here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:24:07+00:00Added an answer on June 3, 2026 at 8:24 am

    So after finally finding the logs, I discovered that you must compile the plugins with Java 6, it is not compatible with Java 7. After this change, the plugins are now running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
Seemingly simple, but I cannot find anything relevant on the web. What is the
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.