jetbrains.buildServer.serverSide
Class BuildServerAdapter

java.lang.Object
  extended by jetbrains.buildServer.serverSide.BuildServerAdapter
All Implemented Interfaces:
java.util.EventListener, BuildServerListener, ServerListener

public class BuildServerAdapter
extends java.lang.Object
implements BuildServerListener

A helper for writing BuildServerListeners.


Constructor Summary
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 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 buildQueueOrderChanged()
          Called when user reordered build queue order.
 void buildRemovedFromQueue(SQueuedBuild queued, 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)
          Called when build tags have been set to specified values
 void buildTagsChanged(SBuild build, User user, java.util.List<java.lang.String> oldTags, java.util.List<java.lang.String> newTags)
          Called when build tags have been set to specified values
 void buildTypeActiveStatusChanged(SBuildType buildType)
          Called when build configuration status changed from active to paused and vice versa.
 void buildTypeAddedToQueue(SBuildType buildType)
          Called when build configuration was added to build queue
 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 entryDeleted(SFinishedBuild entry)
          Called after deletion of the 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)
          Called each time when running build got a message from build agent
 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(java.lang.String projectId)
          Generated when project was removed
 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)
          Called when test responsibility is changed.
 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 serverShutdown()
          Called when server shutdown has been started
 void serverShutdownComplete()
          Event called after server shutdown complete.
 void serverStartup()
          Called when server has been started and its configuration has been loaded from the disk
 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()
          Called when VCS roots are saved to disk
 void vcsRootUpdated(SVcsRoot oldVcsRoot, SVcsRoot newVcsRoot)
          Called when VCS root settings were changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildServerAdapter

public BuildServerAdapter()
Method Detail

agentRegistered

public void agentRegistered(SBuildAgent agent,
                            long currentlyRunningBuildId)
Description copied from interface: BuildServerListener
Called when build agent is registered (connected)

Specified by:
agentRegistered in interface BuildServerListener
Parameters:
agent - which was registered
currentlyRunningBuildId - id of the build which is running on this build agent

agentDescriptionUpdated

public void agentDescriptionUpdated(@NotNull
                                    SBuildAgent agent)
Description copied from interface: BuildServerListener
Called when build agent description update is finished. This event is executed update synchronization on agent instance.

Specified by:
agentDescriptionUpdated in interface BuildServerListener
Parameters:
agent - agent with updated agent description

agentUnregistered

public void agentUnregistered(SBuildAgent agent)
Description copied from interface: BuildServerListener
Called after build agent unregistration

Specified by:
agentUnregistered in interface BuildServerListener
Parameters:
agent - which was unregistered

beforeAgentUnregistered

public void beforeAgentUnregistered(SBuildAgent agent)
Description copied from interface: BuildServerListener
Called before build agent unregistration

Specified by:
beforeAgentUnregistered in interface BuildServerListener
Parameters:
agent - which is about to unregister

agentRemoved

public void agentRemoved(SBuildAgent agent)
Description copied from interface: BuildServerListener
Called when agent was completely removed from server storage.

Specified by:
agentRemoved in interface BuildServerListener
Parameters:
agent - removed agent

buildTypeAddedToQueue

public void buildTypeAddedToQueue(SBuildType buildType)
Description copied from interface: BuildServerListener
Called when build configuration was added to build queue

Specified by:
buildTypeAddedToQueue in interface BuildServerListener
Parameters:
buildType - build configuration added to build queue

buildTypeAddedToQueue

public void buildTypeAddedToQueue(@NotNull
                                  SQueuedBuild queuedBuild)
Description copied from interface: BuildServerListener
Called when build configuration was added to build queue

Specified by:
buildTypeAddedToQueue in interface BuildServerListener
Parameters:
queuedBuild - queued build added to the queue

buildRemovedFromQueue

public void buildRemovedFromQueue(@NotNull
                                  SQueuedBuild queued,
                                  User user,
                                  java.lang.String comment)
Description copied from interface: BuildServerListener
Called when build configuration removed from build queue

Specified by:
buildRemovedFromQueue in interface BuildServerListener
Parameters:
queued - 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

public void buildPinned(@NotNull
                        SBuild build,
                        @Nullable
                        User user,
                        @Nullable
                        java.lang.String comment)
Description copied from interface: BuildServerListener
Called when user pinned the build

Specified by:
buildPinned in interface BuildServerListener
Parameters:
build - pinned build
user - the user who pinned the build
comment - comment provided by user when pinning build

buildUnpinned

public void buildUnpinned(@NotNull
                          SBuild build,
                          @Nullable
                          User user,
                          @Nullable
                          java.lang.String comment)
Description copied from interface: BuildServerListener
Called when user unpinned the build

Specified by:
buildUnpinned in interface BuildServerListener
Parameters:
build - unpinned build
user - the user who unpinned the build
comment - comment provided by user when unpinning build

buildQueueOrderChanged

public void buildQueueOrderChanged()
Description copied from interface: BuildServerListener
Called when user reordered build queue order. Is not called when build is started.

Specified by:
buildQueueOrderChanged in interface BuildServerListener

buildTypeRegistered

public void buildTypeRegistered(SBuildType buildType)
Description copied from interface: BuildServerListener
Called when build configuration is created or build configuration is reloaded from the disk

Specified by:
buildTypeRegistered in interface BuildServerListener
Parameters:
buildType - registered build configuration

buildTypeUnregistered

public void buildTypeUnregistered(SBuildType buildType)
Description copied from interface: BuildServerListener
Called when build configuration is deleted

Specified by:
buildTypeUnregistered in interface BuildServerListener
Parameters:
buildType - unregistered build configuration

buildTypeMoved

public void buildTypeMoved(SBuildType buildType,
                           SProject original)
Description copied from interface: BuildServerListener
Called when build configuration is moved to another project.

Specified by:
buildTypeMoved in interface BuildServerListener
Parameters:
buildType - build type
original - the original project

buildTypeTemplateExternalIdChanged

public void buildTypeTemplateExternalIdChanged(@NotNull
                                               BuildTypeTemplate buildTypeTemplate,
                                               @NotNull
                                               java.lang.String oldExternalId,
                                               @NotNull
                                               java.lang.String newExternalId)
Description copied from interface: BuildServerListener
Called when build configuration template external id changed.

Specified by:
buildTypeTemplateExternalIdChanged in interface BuildServerListener
Parameters:
buildTypeTemplate - the build configuration template which external identifier has changed.
oldExternalId - the previous external identifier.
newExternalId - the new external identifier.

buildTypeExternalIdChanged

public void buildTypeExternalIdChanged(@NotNull
                                       SBuildType buildType,
                                       @NotNull
                                       java.lang.String oldExternalId,
                                       @NotNull
                                       java.lang.String newExternalId)
Description copied from interface: BuildServerListener
Called when the build configuration external id changed.

Specified by:
buildTypeExternalIdChanged in interface BuildServerListener
Parameters:
buildType - the build configuration which external identifier has changed.
oldExternalId - the previous external identifier.
newExternalId - the new external identifier.

projectMoved

public void projectMoved(@NotNull
                         SProject project,
                         @NotNull
                         SProject originalParentProject)
Description copied from interface: BuildServerListener
Called when project is moved to another parent project.

Specified by:
projectMoved in interface BuildServerListener
Parameters:
project - project that is moved
originalParentProject - original parent project of the moved project

beforeBuildTypeDeleted

public void beforeBuildTypeDeleted(@NotNull
                                   java.lang.String buildTypeId)
Description copied from interface: BuildServerListener
Called before cleaning the build configuration data from the database.

Specified by:
beforeBuildTypeDeleted in interface BuildServerListener
Parameters:
buildTypeId - id of build configuration

buildTypeDeleted

public void buildTypeDeleted(@NotNull
                             java.lang.String buildTypeId)
Description copied from interface: BuildServerListener
Called after the cleaning the build configuration data from the database.

Specified by:
buildTypeDeleted in interface BuildServerListener
Parameters:
buildTypeId - id of build configuration

buildTypeTemplateDeleted

public void buildTypeTemplateDeleted(@NotNull
                                     java.lang.String buildTypeTemplateId)
Description copied from interface: BuildServerListener
Called when build configuration template is deleted

Specified by:
buildTypeTemplateDeleted in interface BuildServerListener
Parameters:
buildTypeTemplateId - id of build configuration template

buildTypeActiveStatusChanged

public void buildTypeActiveStatusChanged(SBuildType buildType)
Description copied from interface: BuildServerListener
Called when build configuration status changed from active to paused and vice versa.

Specified by:
buildTypeActiveStatusChanged in interface BuildServerListener
Parameters:
buildType - build configuration whose status has changed

buildStarted

public void buildStarted(SRunningBuild build)
Description copied from interface: BuildServerListener
Called when build is about to start. Changes are not loaded yet, and build agent didn't start the build yet.

Specified by:
buildStarted in interface BuildServerListener
Parameters:
build - build configuration whose status has changed

changesLoaded

public void changesLoaded(SRunningBuild build)
Description copied from interface: BuildServerListener
Called when changes for a newly started build has been loaded

Specified by:
changesLoaded in interface BuildServerListener
Parameters:
build - build, whose changes are loaded

buildChangedStatus

public void buildChangedStatus(SRunningBuild build,
                               Status oldStatus,
                               Status newStatus)
Description copied from interface: BuildServerListener
Called when build status changes from successful to failed

Specified by:
buildChangedStatus in interface BuildServerListener
Parameters:
build - corresponding running build
oldStatus - previous status
newStatus - new status

buildFinished

public void buildFinished(SRunningBuild build)
Description copied from interface: BuildServerListener
Called after build finishing, only if build was not interrupted

Specified by:
buildFinished in interface BuildServerListener
Parameters:
build - running build // TODO: shall pass SFinishedBuild as parameter

beforeBuildFinish

public void beforeBuildFinish(SRunningBuild runningBuild)
Description copied from interface: BuildServerListener
Called right before build finishing, allows to write additional messages to the build log, update build status.

Specified by:
beforeBuildFinish in interface BuildServerListener
Parameters:
runningBuild - corresponding running build

messageReceived

public void messageReceived(SRunningBuild build,
                            BuildMessage1 message)
Description copied from interface: BuildServerListener
Called each time when running build got a message from build agent

Specified by:
messageReceived in interface BuildServerListener
Parameters:
build - running build
message - message sent to the build

responsibleChanged

public void responsibleChanged(@NotNull
                               SBuildType bt,
                               @NotNull
                               ResponsibilityEntry oldValue,
                               @NotNull
                               ResponsibilityEntry newValue)
Description copied from interface: BuildServerListener
Called when build configuration responsible has changed, or responsibility status has changed

Specified by:
responsibleChanged in interface BuildServerListener
Parameters:
bt - build configuration
oldValue - previous responsibility entry
newValue - new responsibility entry

responsibleChanged

public void responsibleChanged(@NotNull
                               SProject project,
                               @Nullable
                               TestNameResponsibilityEntry oldValue,
                               @NotNull
                               TestNameResponsibilityEntry newValue,
                               boolean isUserAction)
Description copied from interface: BuildServerListener
Called when test responsibility is changed.

Specified by:
responsibleChanged in interface BuildServerListener
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

responsibleChanged

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

Specified by:
responsibleChanged in interface BuildServerListener
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

responsibleRemoved

public void responsibleRemoved(SProject project,
                               TestNameResponsibilityEntry entry)
Description copied from interface: BuildServerListener
Called when responsibility for several tests at once is changed.

Specified by:
responsibleRemoved in interface BuildServerListener
Parameters:
project - the project
entry - the new responsibility entry for each test

responsibleChanged

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

Specified by:
responsibleChanged in interface BuildServerListener
Parameters:
project - the project
buildProblems - build problems
entry - the new responsibility entry or null if responsibility is removed

beforeEntryDelete

public void beforeEntryDelete(SFinishedBuild entry)
Description copied from interface: BuildServerListener
Called before deletion of the build history entry

Specified by:
beforeEntryDelete in interface BuildServerListener
Parameters:
entry - build to be deleted

entryDeleted

public void entryDeleted(SFinishedBuild entry)
Description copied from interface: BuildServerListener
Called after deletion of the build history entry

Specified by:
entryDeleted in interface BuildServerListener
Parameters:
entry - deleted build

projectCreated

public void projectCreated(java.lang.String projectId,
                           SUser user)
Description copied from interface: BuildServerListener
Generated when new project was created

Specified by:
projectCreated in interface BuildServerListener
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

public void projectExternalIdChanged(@NotNull
                                     SProject project,
                                     @NotNull
                                     java.lang.String oldExternalId,
                                     @NotNull
                                     java.lang.String newExternalId)
Description copied from interface: BuildServerListener
Called when project external id changed.

Specified by:
projectExternalIdChanged in interface BuildServerListener
Parameters:
project - the project which external id has been changed.
oldExternalId - the old external id.
newExternalId - the new external id.

projectRemoved

public void projectRemoved(java.lang.String projectId)
Description copied from interface: BuildServerListener
Generated when project was removed

Specified by:
projectRemoved in interface BuildServerListener
Parameters:
projectId - deleted project internal id

projectPersisted

public void projectPersisted(java.lang.String projectId)
Description copied from interface: BuildServerListener
Generated when project configuration persisted on a disk

Specified by:
projectPersisted in interface BuildServerListener
Parameters:
projectId - internal id of the saved project

projectRestored

public void projectRestored(java.lang.String projectId)
Description copied from interface: BuildServerListener
Generated when project configuration reloaded from disk

Specified by:
projectRestored in interface BuildServerListener
Parameters:
projectId - internal id of the reloaded project

projectArchived

public void projectArchived(java.lang.String projectId)
Description copied from interface: BuildServerListener
Called when project has been archived

Specified by:
projectArchived in interface BuildServerListener
Parameters:
projectId - internal id of archived project

projectDearchived

public void projectDearchived(java.lang.String projectId)
Description copied from interface: BuildServerListener
Called when project has been dearchived

Specified by:
projectDearchived in interface BuildServerListener
Parameters:
projectId - internal id of dearchived project

buildTypeTemplatePersisted

public void buildTypeTemplatePersisted(@NotNull
                                       BuildTypeTemplate buildTemplate)
Description copied from interface: BuildServerListener
Called when build template has been persisted.

Specified by:
buildTypeTemplatePersisted in interface BuildServerListener
Parameters:
buildTemplate - the just persisted template.

buildTypePersisted

public void buildTypePersisted(@NotNull
                               SBuildType buildType)
Description copied from interface: BuildServerListener
Called when build type has been persisted.

Specified by:
buildTypePersisted in interface BuildServerListener
Parameters:
buildType - the just persisted template.

serverShutdown

public void serverShutdown()
Description copied from interface: ServerListener
Called when server shutdown has been started

Specified by:
serverShutdown in interface ServerListener

serverStartup

public void serverStartup()
Description copied from interface: ServerListener
Called when server has been started and its configuration has been loaded from the disk

Specified by:
serverStartup in interface ServerListener

pluginsLoaded

public void pluginsLoaded()
Description copied from interface: BuildServerListener
Called when all server plugins are loaded

Specified by:
pluginsLoaded in interface BuildServerListener

buildInterrupted

public void buildInterrupted(SRunningBuild build)
Description copied from interface: BuildServerListener
Called after build finishing, only if build was interrupted

Specified by:
buildInterrupted in interface BuildServerListener
Parameters:
build - running build // TODO: shall pass SFinishedBuild as parameter

changeAdded

public void changeAdded(@NotNull
                        VcsModification modification,
                        @NotNull
                        VcsRoot root,
                        @Nullable
                        java.util.Collection<SBuildType> buildTypes)
Description copied from interface: BuildServerListener
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.

Specified by:
changeAdded in interface BuildServerListener
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

agentStatusChanged

public void agentStatusChanged(@NotNull
                               SBuildAgent agent,
                               boolean wasEnabled,
                               boolean wasAuthorized)
Description copied from interface: BuildServerListener
Called when the status of an agent is changed by a user

Specified by:
agentStatusChanged in interface BuildServerListener
Parameters:
agent - the agent
wasEnabled - the previous status
wasAuthorized - previous authorized state

cleanupStarted

public void cleanupStarted()
Description copied from interface: BuildServerListener
Called when database cleanup is going to start.

Specified by:
cleanupStarted in interface BuildServerListener

cleanupFinished

public void cleanupFinished()
Description copied from interface: BuildServerListener
Called when database cleanup has been finished.

Specified by:
cleanupFinished in interface BuildServerListener

serverShutdownComplete

public void serverShutdownComplete()
Description copied from interface: BuildServerListener
Event called after server shutdown complete. Used to terminate hung child processes.

Specified by:
serverShutdownComplete in interface BuildServerListener

sourcesVersionReleased

public void sourcesVersionReleased(@NotNull
                                   BuildAgent agent)
Description copied from interface: BuildServerListener
Clean sources performed for the given agent

Specified by:
sourcesVersionReleased in interface BuildServerListener
Parameters:
agent - build agent whose sources are about to clean todo: change to S-interfaces

sourcesVersionReleased

public void sourcesVersionReleased(@NotNull
                                   BuildType configuration)
Description copied from interface: BuildServerListener
Clean sources performed for the given configuration on all agents

Specified by:
sourcesVersionReleased in interface BuildServerListener
Parameters:
configuration - build configuration, whose sources to clean todo: change to S-interfaces

sourcesVersionReleased

public void sourcesVersionReleased(@NotNull
                                   BuildType configuration,
                                   @NotNull
                                   BuildAgent agent)
Description copied from interface: BuildServerListener
Clean sources performed for the given configuration on the given agent

Specified by:
sourcesVersionReleased in interface BuildServerListener
Parameters:
configuration - build configuration, whose sources to clean
agent - agent where to clean sources todo: change to S-interfaces

labelingFailed

public void labelingFailed(SBuild build,
                           VcsRoot root,
                           java.lang.Throwable exception)
Description copied from interface: BuildServerListener
Labeling process failed for the specified build and root with the specified problem.

Specified by:
labelingFailed in interface BuildServerListener
Parameters:
build - build for which labeling failed.
root - root for which labeling failed.
exception - labeling cause.

labelingSucceed

public void labelingSucceed(SBuild build,
                            BuildRevision revision)
Description copied from interface: BuildServerListener
Labeling process succeed for the specified build and revision

Specified by:
labelingSucceed in interface BuildServerListener
Parameters:
build - build for which labeling failed.
revision - labeled.

buildTagsChanged

public void buildTagsChanged(SBuild build,
                             java.util.List<java.lang.String> oldTags,
                             java.util.List<java.lang.String> newTags)
Description copied from interface: BuildServerListener
Called when build tags have been set to specified values

Specified by:
buildTagsChanged in interface BuildServerListener
Parameters:
build - corresponding build, which tags have been set
oldTags - previous tags on the build
newTags - new tags on the build

buildTagsChanged

public void buildTagsChanged(SBuild build,
                             User user,
                             java.util.List<java.lang.String> oldTags,
                             java.util.List<java.lang.String> newTags)
Description copied from interface: BuildServerListener
Called when build tags have been set to specified values

Specified by:
buildTagsChanged in interface BuildServerListener
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

buildCommented

public void buildCommented(@NotNull
                           SBuild build,
                           @Nullable
                           User user,
                           @Nullable
                           java.lang.String comment)
Description copied from interface: BuildServerListener
Called when user comment the build

Specified by:
buildCommented in interface BuildServerListener
Parameters:
build - commented build
user - the user who commented the build
comment - comment provided by user

serverConfigurationReloaded

public void serverConfigurationReloaded()
Description copied from interface: BuildServerListener
Called when the main server configuration file is reloaded

Specified by:
serverConfigurationReloaded in interface BuildServerListener

vcsRootsPersisted

public void vcsRootsPersisted()
Description copied from interface: BuildServerListener
Called when VCS roots are saved to disk

Specified by:
vcsRootsPersisted in interface BuildServerListener

vcsRootRemoved

public void vcsRootRemoved(@NotNull
                           SVcsRoot root)
Description copied from interface: BuildServerListener
Called when VCS root was removed

Specified by:
vcsRootRemoved in interface BuildServerListener
Parameters:
root - vcs root

vcsRootUpdated

public void vcsRootUpdated(@NotNull
                           SVcsRoot oldVcsRoot,
                           @NotNull
                           SVcsRoot newVcsRoot)
Description copied from interface: BuildServerListener
Called when VCS root settings were changed

Specified by:
vcsRootUpdated in interface BuildServerListener

vcsRootExternalIdChanged

public void vcsRootExternalIdChanged(@NotNull
                                     SVcsRoot vcsRoot,
                                     @NotNull
                                     java.lang.String oldExternalId,
                                     @NotNull
                                     java.lang.String newExternalId)
Description copied from interface: BuildServerListener
Called when VCS root external id has ben changed.

Specified by:
vcsRootExternalIdChanged in interface BuildServerListener
Parameters:
vcsRoot - the VCS root which external identifier has changed.
oldExternalId - the previous external identifier.
newExternalId - the new external identifier.

vcsRootPersisted

public void vcsRootPersisted(@NotNull
                             SVcsRoot vcsRoot)
Description copied from interface: BuildServerListener
Called when VCS root settings have been stored on disk

Specified by:
vcsRootPersisted in interface BuildServerListener
Parameters:
vcsRoot - vcs root whose settings were persisted

testsMuted

public void testsMuted(@NotNull
                       MuteInfo muteInfo)
Description copied from interface: BuildServerListener
Called when a set of tests are muted (with same mute properties). All tests are in the same project.

Specified by:
testsMuted in interface BuildServerListener
Parameters:
muteInfo - mute info

testsUnmuted

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

Specified by:
testsUnmuted in interface BuildServerListener
Parameters:
user - user that unmuted tests, or null if they were unmuted automatically.
unmutedGroups - groups of tests that were unmuted.

buildProblemsChanged

public void buildProblemsChanged(@NotNull
                                 SBuild build,
                                 @NotNull
                                 java.util.List<BuildProblemData> before,
                                 @NotNull
                                 java.util.List<BuildProblemData> after)
Description copied from interface: BuildServerListener
Called when list of build problems changes (problems added, removed)

Specified by:
buildProblemsChanged in interface BuildServerListener
Parameters:
build - corresponding build
before - list of build problems before change
after - list of build problems after change

statisticValuePublished

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

Specified by:
statisticValuePublished in interface BuildServerListener
Parameters:
build - build this particular value pertains to
valueTypeKey - target statistic-value's type-key
value - target build-value

buildProblemsMuted

public void buildProblemsMuted(@NotNull
                               MuteInfo muteInfo)
Description copied from interface: BuildServerListener
Called when a set of build problems are muted (with same mute properties). All problems belong the same project.

Specified by:
buildProblemsMuted in interface BuildServerListener
Parameters:
muteInfo - mute info

buildProblemsUnmuted

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

Specified by:
buildProblemsUnmuted in interface BuildServerListener
Parameters:
user - user that unmuted problems, or null if they were unmuted automatically.
unmutedGroups - groups of build problems that were unmuted.