jetbrains.buildServer.serverSide
Interface BuildServerListener

All Superinterfaces:
java.util.EventListener, ServerListener
All Known Implementing Classes:
BasePluginStatePersister, BuildServerAdapter

@UserImplemented(adapterClass=BuildServerAdapter.class)
public interface BuildServerListener
extends ServerListener, java.util.EventListener

Generic TeamCity server listeners. Most operations with builds, agents, queue can be detected by implementing this listener.
To subscribe to this event listener you should use Spring bean of type EventDispatcher of BuildServerListener and call EventDispatcher.addListener(java.util.EventListener)} method.

See Also:
BuildServerAdapter

Method Summary
 void agentDescriptionUpdated(SBuildAgent agent)
          Called when build agent description update is finished.
 void agentRegistered(SBuildAgent agent, long currentlyRunningBuildId)
          Called when build agent is registered (connected)
 void agentRemoved(SBuildAgent agent)
          Called when agent was completely removed from server storage.
 void agentStatusChanged(SBuildAgent agent, boolean wasEnabled, boolean wasAuthorized)
          Called when the status of an agent is changed by a user
 void agentUnregistered(SBuildAgent agent)
          Called after build agent unregistration
 void beforeAgentUnregistered(SBuildAgent agent)
          Called before build agent unregistration
 void beforeBuildFinish(SRunningBuild runningBuild)
          Called right before build finishing, allows to write additional messages to the build log, update build status.
 void beforeBuildTypeDeleted(java.lang.String buildTypeId)
          Called before cleaning the build configuration data from the database.
 void beforeEntryDelete(SFinishedBuild entry)
          Called before deletion of the build history entry
 void buildArtifactsChanged(SBuild build)
          Called when build artifacts are changed by the server on disk, for example, when cleanup removed some files.
 void buildChangedStatus(SRunningBuild build, Status oldStatus, Status newStatus)
          Called when build status changes from successful to failed
 void buildCommented(SBuild build, User user, java.lang.String comment)
          Called when user comment the build
 void buildFinished(SRunningBuild build)
          Called after build finishing, only if build was not interrupted
 void buildInterrupted(SRunningBuild build)
          Called after build finishing, only if build was interrupted
 void buildPinned(SBuild build, User user, java.lang.String comment)
          Called when user pinned the build.
 void buildProblemsChanged(SBuild build, java.util.List<BuildProblemData> before, java.util.List<BuildProblemData> after)
          Called when list of build problems changes (problems added, removed)
 void buildProblemsMuted(MuteInfo muteInfo)
          Called when a set of build problems are muted (with same mute properties).
 void buildProblemsUnmuted(SUser user, java.util.Map<MuteInfo,java.util.Collection<BuildProblemInfo>> unmutedGroups)
          Called when a set of build problems are unmuted.
 void buildPromotionTagsChanged(BuildPromotion buildPromotion, User user, java.util.Collection<TagData> oldTags, java.util.Collection<TagData> newTags)
          Called when build promotion tags have been set to specified values
 void buildQueueOrderChanged()
          Called when user reordered build queue order.
 void buildRemovedFromQueue(SQueuedBuild queuedBuild, User user, java.lang.String comment)
          Called when build configuration removed from build queue
 void buildStarted(SRunningBuild build)
          Called when build is about to start.
 void buildTagsChanged(SBuild build, java.util.List<java.lang.String> oldTags, java.util.List<java.lang.String> newTags)
          Deprecated. Use buildTagsChanged(SBuild, User, List, List)
 void buildTagsChanged(SBuild build, User user, java.util.List<java.lang.String> oldTags, java.util.List<java.lang.String> newTags)
          Deprecated. Use buildPromotionTagsChanged(BuildPromotion, User, Collection, Collection)
 void buildTypeActiveStatusChanged(SBuildType buildType)
          Called when build configuration status changed from active to paused and vice versa.
 void buildTypeAddedToQueue(SBuildType buildType)
          Deprecated.  
 void buildTypeAddedToQueue(SQueuedBuild queuedBuild)
          Called when build configuration was added to build queue
 void buildTypeDeleted(java.lang.String buildTypeId)
          Called after the cleaning the build configuration data from the database.
 void buildTypeExternalIdChanged(SBuildType buildType, java.lang.String oldExternalId, java.lang.String newExternalId)
          Called when the build configuration external id changed.
 void buildTypeMoved(SBuildType buildType, SProject original)
          Called when build configuration is moved to another project.
 void buildTypePersisted(SBuildType buildType)
          Called when build type has been persisted.
 void buildTypeRegistered(SBuildType buildType)
          Called when build configuration is created or build configuration is reloaded from the disk
 void buildTypeTemplateDeleted(java.lang.String buildTypeTemplateId)
          Called when build configuration template is deleted
 void buildTypeTemplateExternalIdChanged(BuildTypeTemplate buildTypeTemplate, java.lang.String oldExternalId, java.lang.String newExternalId)
          Called when build configuration template external id changed.
 void buildTypeTemplatePersisted(BuildTypeTemplate buildTemplate)
          Called when build template has been persisted.
 void buildTypeUnregistered(SBuildType buildType)
          Called when build configuration is deleted
 void buildUnpinned(SBuild build, User user, java.lang.String comment)
          Called when user unpinned the build.
 void changeAdded(VcsModification modification, VcsRoot root, java.util.Collection<SBuildType> buildTypes)
          Called when a new modification (user commit) was detected.
 void changesLoaded(SRunningBuild build)
          Called when changes for a newly started build has been loaded
 void cleanupFinished()
          Called when database cleanup has been finished.
 void cleanupStarted()
          Called when database cleanup is going to start.
 void entriesDeleted(java.util.Collection<SFinishedBuild> removedEntries)
          Called after deletion of a set of build history entries Only one of entryDeleted(SFinishedBuild) or this method should be overriden in a listener.
 void entryDeleted(SFinishedBuild entry)
          Called after deletion of a build history entry.
 void labelingFailed(SBuild build, VcsRoot root, java.lang.Throwable exception)
          Labeling process failed for the specified build and root with the specified problem.
 void labelingSucceed(SBuild build, BuildRevision revision)
          Labeling process succeed for the specified build and revision
 void messageReceived(SRunningBuild build, BuildMessage1 message)
          Deprecated. since 10.0 this method no longer works
 void pluginsLoaded()
          Called when all server plugins are loaded
 void projectArchived(java.lang.String projectId)
          Called when project has been archived
 void projectCreated(java.lang.String projectId, SUser user)
          Generated when new project was created
 void projectDearchived(java.lang.String projectId)
          Called when project has been dearchived
 void projectExternalIdChanged(SProject project, java.lang.String oldExternalId, java.lang.String newExternalId)
          Called when project external id changed.
 void projectMoved(SProject project, SProject originalParentProject)
          Called when project is moved to another parent project.
 void projectPersisted(java.lang.String projectId)
          Generated when project configuration persisted on a disk
 void projectRemoved(SProject project)
          Generated when project was removed
 void projectRemoved(java.lang.String projectId)
          Deprecated. see projectRemoved(SProject)
 void projectRestored(java.lang.String projectId)
          Generated when project configuration reloaded from disk
 void responsibleChanged(SBuildType bt, ResponsibilityEntry oldValue, ResponsibilityEntry newValue)
          Called when build configuration responsible has changed, or responsibility status has changed
 void responsibleChanged(SProject project, java.util.Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry)
          Called when responsibility for several build problems at once is changed.
 void responsibleChanged(SProject project, java.util.Collection<TestName> testNames, ResponsibilityEntry entry, boolean isUserAction)
          Called when responsibility for several tests at once is changed.
 void responsibleChanged(SProject project, TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, boolean isUserAction)
          Deprecated. Is not used since TeamCity 8.1, use collection-based #responsibleChanged method instead.
 void responsibleRemoved(SProject project, TestNameResponsibilityEntry entry)
          Called when responsibility for several tests at once is changed.
 void serverConfigurationReloaded()
          Called when the main server configuration file is reloaded
 void serverShutdownComplete()
          Event called after server shutdown complete.
 void sourcesVersionReleased(BuildAgent agent)
          Clean sources performed for the given agent
 void sourcesVersionReleased(BuildType configuration)
          Clean sources performed for the given configuration on all agents
 void sourcesVersionReleased(BuildType configuration, BuildAgent agent)
          Clean sources performed for the given configuration on the given agent
 void statisticValuePublished(SBuild build, java.lang.String valueTypeKey, java.math.BigDecimal value)
          Called upon statistic-value related to the given build have been published
 void testsMuted(MuteInfo muteInfo)
          Called when a set of tests are muted (with same mute properties).
 void testsUnmuted(SUser user, java.util.Map<MuteInfo,java.util.Collection<STest>> unmutedGroups)
          Called when several of tests have been unmuted.
 void vcsRootExternalIdChanged(SVcsRoot vcsRoot, java.lang.String oldExternalId, java.lang.String newExternalId)
          Called when VCS root external id has ben changed.
 void vcsRootPersisted(SVcsRoot vcsRoot)
          Called when VCS root settings have been stored on disk
 void vcsRootRemoved(SVcsRoot root)
          Called when VCS root was removed
 void vcsRootsPersisted()
          Deprecated. since 8.0, use vcsRootPersisted(jetbrains.buildServer.vcs.SVcsRoot) instead
 void vcsRootUpdated(SVcsRoot oldVcsRoot, SVcsRoot newVcsRoot)
          Called when VCS root settings were changed
 
Methods inherited from interface jetbrains.buildServer.serverSide.ServerListener
serverShutdown, serverStartup
 

Method Detail

agentRegistered

void agentRegistered(@NotNull
                     SBuildAgent agent,
                     long currentlyRunningBuildId)
Called when build agent is registered (connected)

Parameters:
agent - which was registered
currentlyRunningBuildId - id of the build which is running on this build agent, -1 if no build is running on agent

agentDescriptionUpdated

void agentDescriptionUpdated(@NotNull
                             SBuildAgent agent)
Called when build agent description update is finished. This event is executed update synchronization on agent instance.

Parameters:
agent - agent with updated agent description
Since:
6.0

beforeAgentUnregistered

void beforeAgentUnregistered(@NotNull
                             SBuildAgent agent)
Called before build agent unregistration

Parameters:
agent - which is about to unregister

agentUnregistered

void agentUnregistered(@NotNull
                       SBuildAgent agent)
Called after build agent unregistration

Parameters:
agent - which was unregistered

agentStatusChanged

void agentStatusChanged(@NotNull
                        SBuildAgent agent,
                        boolean wasEnabled,
                        boolean wasAuthorized)
Called when the status of an agent is changed by a user

Parameters:
agent - the agent
wasEnabled - the previous status
wasAuthorized - previous authorized state

agentRemoved

void agentRemoved(@NotNull
                  SBuildAgent agent)
Called when agent was completely removed from server storage.

Parameters:
agent - removed agent

buildTypeAddedToQueue

@Deprecated
void buildTypeAddedToQueue(@NotNull
                                      SBuildType buildType)
Deprecated. 

Called when build configuration was added to build queue

Parameters:
buildType - build configuration added to build queue

buildTypeAddedToQueue

void buildTypeAddedToQueue(@NotNull
                           SQueuedBuild queuedBuild)
Called when build configuration was added to build queue

Parameters:
queuedBuild - queued build added to the queue

buildRemovedFromQueue

void buildRemovedFromQueue(@NotNull
                           SQueuedBuild queuedBuild,
                           User user,
                           java.lang.String comment)
Called when build configuration removed from build queue

Parameters:
queuedBuild - queued build removed from the queue
user - if build was removed manually, contains the user who removed build configuration from queue
comment - provided by user when removing build from queue

buildPinned

void buildPinned(@NotNull
                 SBuild build,
                 @Nullable
                 User user,
                 @Nullable
                 java.lang.String comment)
Called when user pinned the build. NB build could be pinned multiple times without unpinning

Parameters:
build - pinned build
user - the user who pinned the build
comment - comment provided by user when pinning build

buildUnpinned

void buildUnpinned(@NotNull
                   SBuild build,
                   @Nullable
                   User user,
                   @Nullable
                   java.lang.String comment)
Called when user unpinned the build. NB build could be unpinned multiple times without pinning

Parameters:
build - unpinned build
user - the user who unpinned the build
comment - comment provided by user when unpinning build

buildQueueOrderChanged

void buildQueueOrderChanged()
Called when user reordered build queue order. Is not called when build is started.


buildTypeRegistered

void buildTypeRegistered(@NotNull
                         SBuildType buildType)
Called when build configuration is created or build configuration is reloaded from the disk

Parameters:
buildType - registered build configuration

buildTypeUnregistered

void buildTypeUnregistered(@NotNull
                           SBuildType buildType)
Called when build configuration is deleted

Parameters:
buildType - unregistered build configuration

buildTypeMoved

void buildTypeMoved(@NotNull
                    SBuildType buildType,
                    @NotNull
                    SProject original)
Called when build configuration is moved to another project.

Parameters:
buildType - build type
original - the original project

buildTypeTemplateExternalIdChanged

void buildTypeTemplateExternalIdChanged(@NotNull
                                        BuildTypeTemplate buildTypeTemplate,
                                        @NotNull
                                        java.lang.String oldExternalId,
                                        @NotNull
                                        java.lang.String newExternalId)
Called when build configuration template external id changed.

Parameters:
buildTypeTemplate - the build configuration template which external identifier has changed.
oldExternalId - the previous external identifier.
newExternalId - the new external identifier.
Since:
8.0

buildTypeExternalIdChanged

void buildTypeExternalIdChanged(@NotNull
                                SBuildType buildType,
                                @NotNull
                                java.lang.String oldExternalId,
                                @NotNull
                                java.lang.String newExternalId)
Called when the build configuration external id changed.

Parameters:
buildType - the build configuration which external identifier has changed.
oldExternalId - the previous external identifier.
newExternalId - the new external identifier.
Since:
8.0

projectMoved

void projectMoved(@NotNull
                  SProject project,
                  @NotNull
                  SProject originalParentProject)
Called when project is moved to another parent project.

Parameters:
project - project that is moved
originalParentProject - original parent project of the moved project
Since:
8.0

beforeBuildTypeDeleted

void beforeBuildTypeDeleted(@NotNull
                            java.lang.String buildTypeId)
Called before cleaning the build configuration data from the database.

Parameters:
buildTypeId - id of build configuration

buildTypeDeleted

void buildTypeDeleted(@NotNull
                      java.lang.String buildTypeId)
Called after the cleaning the build configuration data from the database.

Parameters:
buildTypeId - id of build configuration

buildTypeTemplateDeleted

void buildTypeTemplateDeleted(@NotNull
                              java.lang.String buildTypeTemplateId)
Called when build configuration template is deleted

Parameters:
buildTypeTemplateId - id of build configuration template
Since:
6.5

buildTypeActiveStatusChanged

void buildTypeActiveStatusChanged(@NotNull
                                  SBuildType buildType)
Called when build configuration status changed from active to paused and vice versa.

Parameters:
buildType - build configuration whose status has changed

buildStarted

void buildStarted(@NotNull
                  SRunningBuild build)
Called when build is about to start. Changes are not loaded yet, and build agent didn't start the build yet.

Parameters:
build - build configuration whose status has changed

changesLoaded

void changesLoaded(@NotNull
                   SRunningBuild build)
Called when changes for a newly started build has been loaded

Parameters:
build - build, whose changes are loaded

buildChangedStatus

void buildChangedStatus(@NotNull
                        SRunningBuild build,
                        Status oldStatus,
                        Status newStatus)
Called when build status changes from successful to failed

Parameters:
build - corresponding running build
oldStatus - previous status
newStatus - new status

beforeBuildFinish

void beforeBuildFinish(@NotNull
                       SRunningBuild runningBuild)
Called right before build finishing, allows to write additional messages to the build log, update build status.

Parameters:
runningBuild - corresponding running build

buildFinished

void buildFinished(@NotNull
                   SRunningBuild build)
Called after build finishing, only if build was not interrupted

Parameters:
build - running build // TODO: shall pass SFinishedBuild as parameter

buildInterrupted

void buildInterrupted(@NotNull
                      SRunningBuild build)
Called after build finishing, only if build was interrupted

Parameters:
build - running build // TODO: shall pass SFinishedBuild as parameter

messageReceived

@Deprecated
void messageReceived(@NotNull
                                SRunningBuild build,
                                @NotNull
                                BuildMessage1 message)
Deprecated. since 10.0 this method no longer works

Called each time when running build got a message from build agent

Parameters:
build - running build
message - message sent to the build

responsibleChanged

void responsibleChanged(@NotNull
                        SBuildType bt,
                        @NotNull
                        ResponsibilityEntry oldValue,
                        @NotNull
                        ResponsibilityEntry newValue)
Called when build configuration responsible has changed, or responsibility status has changed

Parameters:
bt - build configuration
oldValue - previous responsibility entry
newValue - new responsibility entry
Since:
7.0

responsibleChanged

@Deprecated
void responsibleChanged(@NotNull
                                   SProject project,
                                   @Nullable
                                   TestNameResponsibilityEntry oldValue,
                                   @NotNull
                                   TestNameResponsibilityEntry newValue,
                                   boolean isUserAction)
Deprecated. Is not used since TeamCity 8.1, use collection-based #responsibleChanged method instead.

Called when test responsibility is changed.

Parameters:
project - the project in which test responsibility has changed
oldValue - old responsibility entry
newValue - new responsibility entry
isUserAction - true if responsibility status was changed manually via Web UI
Since:
5.0

responsibleChanged

void responsibleChanged(@NotNull
                        SProject project,
                        @NotNull
                        java.util.Collection<TestName> testNames,
                        @NotNull
                        ResponsibilityEntry entry,
                        boolean isUserAction)
Called when responsibility for several tests at once is changed.

Parameters:
project - the project
testNames - test names
entry - the new responsibility entry for each test
isUserAction - true if responsibility status was changed manually via Web UI
Since:
6.0

responsibleChanged

void responsibleChanged(@NotNull
                        SProject project,
                        @NotNull
                        java.util.Collection<BuildProblemInfo> buildProblems,
                        @Nullable
                        ResponsibilityEntry entry)
Called when responsibility for several build problems at once is changed.

Parameters:
project - the project
buildProblems - build problems
entry - the new responsibility entry or null if responsibility is removed
Since:
8.0

responsibleRemoved

void responsibleRemoved(@NotNull
                        SProject project,
                        @NotNull
                        TestNameResponsibilityEntry entry)
Called when responsibility for several tests at once is changed.

Parameters:
project - the project
entry - the new responsibility entry for each test
Since:
7.0

beforeEntryDelete

void beforeEntryDelete(@NotNull
                       SFinishedBuild entry)
Called before deletion of the build history entry

Parameters:
entry - build to be deleted

entryDeleted

void entryDeleted(@NotNull
                  SFinishedBuild entry)
Called after deletion of a build history entry. Better use entriesDeleted(java.util.Collection). Only this method or entriesDeleted(java.util.Collection) should be overriden in a listener.

Parameters:
entry - deleted build
See Also:
entriesDeleted(java.util.Collection)

entriesDeleted

void entriesDeleted(@NotNull
                    java.util.Collection<SFinishedBuild> removedEntries)
Called after deletion of a set of build history entries Only one of entryDeleted(SFinishedBuild) or this method should be overriden in a listener.

Parameters:
removedEntries - deleted builds
Since:
9.0

projectCreated

void projectCreated(@NotNull
                    java.lang.String projectId,
                    @Nullable
                    SUser user)
Generated when new project was created

Parameters:
projectId - internal id of the created project
user - the user creating the project (or null if it can't be determined, e.g. after manual project config change)

projectExternalIdChanged

void projectExternalIdChanged(@NotNull
                              SProject project,
                              @NotNull
                              java.lang.String oldExternalId,
                              @NotNull
                              java.lang.String newExternalId)
Called when project external id changed.

Parameters:
project - the project which external id has been changed.
oldExternalId - the old external id.
newExternalId - the new external id.
Since:
8.0

projectRemoved

@Deprecated
void projectRemoved(@NotNull
                               java.lang.String projectId)
Deprecated. see projectRemoved(SProject)

Generated when project was removed

Parameters:
projectId - deleted project internal id

projectRemoved

void projectRemoved(@NotNull
                    SProject project)
Generated when project was removed

Parameters:
project - deleted project
Since:
9.0

projectPersisted

void projectPersisted(@NotNull
                      java.lang.String projectId)
Generated when project configuration persisted on a disk

Parameters:
projectId - internal id of the saved project

projectRestored

void projectRestored(@NotNull
                     java.lang.String projectId)
Generated when project configuration reloaded from disk

Parameters:
projectId - internal id of the reloaded project

projectArchived

void projectArchived(@NotNull
                     java.lang.String projectId)
Called when project has been archived

Parameters:
projectId - internal id of archived project

projectDearchived

void projectDearchived(@NotNull
                       java.lang.String projectId)
Called when project has been dearchived

Parameters:
projectId - internal id of dearchived project

buildTypeTemplatePersisted

void buildTypeTemplatePersisted(@NotNull
                                BuildTypeTemplate buildTemplate)
Called when build template has been persisted.

Parameters:
buildTemplate - the just persisted template.
Since:
8.0

buildTypePersisted

void buildTypePersisted(@NotNull
                        SBuildType buildType)
Called when build type has been persisted.

Parameters:
buildType - the just persisted build type.
Since:
8.0

pluginsLoaded

void pluginsLoaded()
Called when all server plugins are loaded


changeAdded

void changeAdded(@NotNull
                 VcsModification modification,
                 @NotNull
                 VcsRoot root,
                 @Nullable
                 java.util.Collection<SBuildType> buildTypes)
Called when a new modification (user commit) was detected. Vcs modification can be detected during periodical process of changes collecting (in this case buildTypes parameter is null) or during build(s) startup phase. In the latter case buildTypes parameter will contain collection of build configurations for which changes collection was performed.

Parameters:
modification - detected VCS modification
root - VCS root where modification was detected
buildTypes - if changes were detected when a build starts collection of buildTypes where changes collection was performed

cleanupStarted

void cleanupStarted()
Called when database cleanup is going to start.


cleanupFinished

void cleanupFinished()
Called when database cleanup has been finished.


serverShutdownComplete

void serverShutdownComplete()
Event called after server shutdown complete. Used to terminate hung child processes.


sourcesVersionReleased

void sourcesVersionReleased(@NotNull
                            BuildAgent agent)
Clean sources performed for the given agent

Parameters:
agent - build agent whose sources are about to clean todo: change to S-interfaces

sourcesVersionReleased

void sourcesVersionReleased(@NotNull
                            BuildType configuration)
Clean sources performed for the given configuration on all agents

Parameters:
configuration - build configuration, whose sources to clean todo: change to S-interfaces

sourcesVersionReleased

void sourcesVersionReleased(@NotNull
                            BuildType configuration,
                            @NotNull
                            BuildAgent agent)
Clean sources performed for the given configuration on the given agent

Parameters:
configuration - build configuration, whose sources to clean
agent - agent where to clean sources todo: change to S-interfaces

labelingFailed

void labelingFailed(@NotNull
                    SBuild build,
                    @NotNull
                    VcsRoot root,
                    @NotNull
                    java.lang.Throwable exception)
Labeling process failed for the specified build and root with the specified problem.

Parameters:
build - build for which labeling failed.
root - root for which labeling failed.
exception - labeling cause.

labelingSucceed

void labelingSucceed(@NotNull
                     SBuild build,
                     @NotNull
                     BuildRevision revision)
Labeling process succeed for the specified build and revision

Parameters:
build - build for which labeling failed.
revision - labeled.

buildTagsChanged

@Deprecated
void buildTagsChanged(@NotNull
                                 SBuild build,
                                 @NotNull
                                 java.util.List<java.lang.String> oldTags,
                                 @NotNull
                                 java.util.List<java.lang.String> newTags)
Deprecated. Use buildTagsChanged(SBuild, User, List, List)

Called when build tags have been set to specified values

Parameters:
build - corresponding build, which tags have been set
oldTags - previous tags on the build
newTags - new tags on the build

buildTagsChanged

@Deprecated
void buildTagsChanged(@NotNull
                                 SBuild build,
                                 @Nullable
                                 User user,
                                 @NotNull
                                 java.util.List<java.lang.String> oldTags,
                                 @NotNull
                                 java.util.List<java.lang.String> newTags)
Deprecated. Use buildPromotionTagsChanged(BuildPromotion, User, Collection, Collection)

Called when build tags have been set to specified values

Parameters:
build - corresponding build, which tags have been set
user - user who set new tags
oldTags - previous tags on the build
newTags - new tags on the build
Since:
4.0.1

buildPromotionTagsChanged

void buildPromotionTagsChanged(@NotNull
                               BuildPromotion buildPromotion,
                               @Nullable
                               User user,
                               @NotNull
                               java.util.Collection<TagData> oldTags,
                               @NotNull
                               java.util.Collection<TagData> newTags)
Called when build promotion tags have been set to specified values

Parameters:
buildPromotion - corresponding build promotion, which tags have been set
user - user who set new tags
oldTags - previous tags on the build promotion (public and private)
newTags - new tags on the build promotion (public and private)
Since:
9.0

buildCommented

void buildCommented(@NotNull
                    SBuild build,
                    @Nullable
                    User user,
                    @Nullable
                    java.lang.String comment)
Called when user comment the build

Parameters:
build - commented build
user - the user who commented the build
comment - comment provided by user

serverConfigurationReloaded

void serverConfigurationReloaded()
Called when the main server configuration file is reloaded

Since:
4.5

vcsRootRemoved

void vcsRootRemoved(@NotNull
                    SVcsRoot root)
Called when VCS root was removed

Parameters:
root - vcs root
Since:
5.0

vcsRootUpdated

void vcsRootUpdated(@NotNull
                    SVcsRoot oldVcsRoot,
                    @NotNull
                    SVcsRoot newVcsRoot)
Called when VCS root settings were changed

Parameters:
oldVcsRoot - old VCS root
newVcsRoot - new VCS root
Since:
8.0 oldVcsRoot and newVcsRoot are the same objects

vcsRootExternalIdChanged

void vcsRootExternalIdChanged(@NotNull
                              SVcsRoot vcsRoot,
                              @NotNull
                              java.lang.String oldExternalId,
                              @NotNull
                              java.lang.String newExternalId)
Called when VCS root external id has ben changed.

Parameters:
vcsRoot - the VCS root which external identifier has changed.
oldExternalId - the previous external identifier.
newExternalId - the new external identifier.
Since:
8.0

vcsRootPersisted

void vcsRootPersisted(@NotNull
                      SVcsRoot vcsRoot)
Called when VCS root settings have been stored on disk

Parameters:
vcsRoot - vcs root whose settings were persisted
Since:
8.0

vcsRootsPersisted

@Deprecated
void vcsRootsPersisted()
Deprecated. since 8.0, use vcsRootPersisted(jetbrains.buildServer.vcs.SVcsRoot) instead

Called when VCS roots are saved to disk

Since:
5.0

testsMuted

void testsMuted(@NotNull
                MuteInfo muteInfo)
Called when a set of tests are muted (with same mute properties). All tests are in the same project.

Parameters:
muteInfo - mute info
Since:
6.5

testsUnmuted

void testsUnmuted(@Nullable
                  SUser user,
                  @NotNull
                  java.util.Map<MuteInfo,java.util.Collection<STest>> unmutedGroups)
Called when several of tests have been unmuted. Tests can be belong to several projects.

Parameters:
user - user that unmuted tests, or null if they were unmuted automatically.
unmutedGroups - groups of tests that were unmuted.
Since:
6.5.6

buildProblemsMuted

void buildProblemsMuted(@NotNull
                        MuteInfo muteInfo)
Called when a set of build problems are muted (with same mute properties). All problems belong the same project.

Parameters:
muteInfo - mute info
Since:
8.0

buildProblemsUnmuted

void buildProblemsUnmuted(@Nullable
                          SUser user,
                          @NotNull
                          java.util.Map<MuteInfo,java.util.Collection<BuildProblemInfo>> unmutedGroups)
Called when a set of build problems are unmuted. Problems can be belong to several projects.

Parameters:
user - user that unmuted problems, or null if they were unmuted automatically.
unmutedGroups - groups of build problems that were unmuted.
Since:
8.0

buildProblemsChanged

void buildProblemsChanged(@NotNull
                          SBuild build,
                          @NotNull
                          java.util.List<BuildProblemData> before,
                          @NotNull
                          java.util.List<BuildProblemData> after)
Called when list of build problems changes (problems added, removed)

Parameters:
build - corresponding build
before - list of build problems before change
after - list of build problems after change
Since:
7.1

statisticValuePublished

void statisticValuePublished(@NotNull
                             SBuild build,
                             @NotNull
                             java.lang.String valueTypeKey,
                             @NotNull
                             java.math.BigDecimal value)
Called upon statistic-value related to the given build have been published

Parameters:
build - build this particular value pertains to
valueTypeKey - target statistic-value's type-key
value - target build-value

buildArtifactsChanged

void buildArtifactsChanged(@NotNull
                           SBuild build)
Called when build artifacts are changed by the server on disk, for example, when cleanup removed some files.

Parameters:
build - build whose artifacts were changed
Since:
9.0