Package jetbrains.buildServer.serverSide
Class BuildServerAdapter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
-
- jetbrains.buildServer.serverSide.BuildServerAdapter
-
- All Implemented Interfaces:
EventListener,BuildServerListener,ProjectsModelListener,ServerListener
- Direct Known Subclasses:
AddNewProjectToVisibleListener,AutoCheckoutDecisionsProcessor,AutoCheckoutResolveResults,AutoMergeFinishBuildListener,BuildEstimationListener,BuildProblemInvestigationsAndMutesListener,BuildProblemsTicketManagerImpl,BuildStatusRecalculator,BuildTypesEventListener,CheckingForChangesScheduler,CommittedBuildsHolderImpl,ConditionalStepsTracker,ConfigHistoryManagerImpl,CurrentProblemsManagerImpl,DeletedEntityTrackerImpl,DependencyChangedMarker,DiskUsageSListener,EventTrackerImpl,ExecutorModeBuildVerifier,ExternalStoragesInfoRegistryUpdater,IssuesPrefetcher,MaxAuthorizedAgentsStatsProvider,MaxConcurrentBuilds,NotificationEventAdapter,ObsoleteBuildsKiller,ObsoleteLogsMigrator,PositionAwareBuildServerAdapter,ProjectEventsNotifier,RemoteDebugTemporaryPersonalChangesCleaner,RemoteParametersContextProcessor,ServerStatisticsNotificator.ServerStatisticListener,TestInvestigationsAndMutesListener,VersionedSettingsProjectRestoredListener,WaitForThreadOnStartListener,WaitReasonStatisticsCollector
public class BuildServerAdapter extends ProjectsModelListenerAdapter implements BuildServerListener
A helper for writingBuildServerListeners.
-
-
Constructor Summary
Constructors Constructor Description BuildServerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidagentDescriptionUpdated(SBuildAgent agent)Called when build agent description update is finished.voidagentRegistered(SBuildAgent agent, long currentlyRunningBuildId)Called when build agent is registered (connected)
Some events may be skipped when an agent was registered on another node.voidagentRemoved(int agentId)Called when agent with specified id is removed.voidagentRemoved(SBuildAgent agent)Called when agent was completely removed from server storage.voidagentsDescriptionUpdated(Collection<SBuildAgent> agents)Same asBuildServerListener.agentDescriptionUpdated(SBuildAgent)but is sent for a number of agents at once.voidagentStatusChanged(SBuildAgent agent, boolean wasEnabled, boolean wasAuthorized)Called when the status of an agent is changed by a user
Some events may be skipped when an agent is registered on another node.voidagentUnregistered(SBuildAgent agent)Deprecated.voidagentUnregistered(SBuildAgent agent, String reason)Called after build agent unregistration
Some events may be skipped when an agent was registered on another node.voidbeforeAgentUnregistered(SBuildAgent agent)Called before build agent unregistration
Some events may be skipped when an agent was registered on another node.voidbeforeBuildFinish(SRunningBuild runningBuild)Called right before build finishing, allows to write additional messages to the build log, update build status.voidbeforeEntryDelete(SFinishedBuild entry)Called before deletion of the build history entryvoidbeforeServerConfigurationLoaded()Called before the server configuration is loaded by the server on startup.voidbuildArtifactsChanged(SBuild build)Called when build artifacts are changed by the server on disk, for example, when cleanup removed some files.voidbuildChangedStatus(SRunningBuild build, Status oldStatus, Status newStatus)Called when build status changes from successful to failedvoidbuildCommented(SBuild build, User user, String comment)Called when user comment the build.voidbuildDetachedFromAgent(SRunningBuild build)Called after build is detached from agent, making the agent available to other buildsvoidbuildFinished(SRunningBuild build)Called after build finishing, only if build was not interruptedvoidbuildInterrupted(SRunningBuild build)Called after build finishing, only if build was interruptedvoidbuildPinned(SBuild build, User user, String comment)Called when user pinned the build.voidbuildProblemsChanged(SBuild build, List<BuildProblemData> before, List<BuildProblemData> after)Called when list of build problems changes (problems added, removed)
beforeparameter may be empty or contain some outdated data when the problems are changed on another node: current node is main server but the problem was added on messages processing node current node is read-only but the problem was added on the main servervoidbuildProblemsMuted(MuteInfo muteInfo)Called when a set of build problems are muted (with same mute properties).voidbuildProblemsUnmuted(SUser user, Map<MuteInfo,Collection<BuildProblemInfo>> unmutedGroups)Called when a set of build problems are unmuted.voidbuildPromotionTagsChanged(BuildPromotion buildPromotion, User user, Collection<TagData> oldTags, Collection<TagData> newTags)Called when build promotion tags have been set to specified values
Some parameters may be omitted when the tags were changed on another node (i.e.voidbuildQueueOrderChanged()Called when user reordered build queue order.voidbuildRemovedFromQueue(SQueuedBuild queued, User user, String comment)Called when a build is removed from the build queue (started, deleted, optimized, etc.) Some events may be missing when the current node is not responsible for managing build queue.voidbuildStarted(SRunningBuild build)Called when build is about to start.voidbuildTagsChanged(SBuild build, List<String> oldTags, List<String> newTags)Deprecated.voidbuildTagsChanged(SBuild build, User user, List<String> oldTags, List<String> newTags)Deprecated.voidbuildTypeAddedToQueue(SBuildType buildType)Deprecated.voidbuildTypeAddedToQueue(SQueuedBuild queuedBuild)Called when build configuration was added to build queue Some events may be missing when the current node is not responsible for managing build queue.voidbuildUnpinned(SBuild build, User user, String comment)Called when user unpinned the build.voidchangeAdded(VcsModification modification, VcsRoot root, Collection<SBuildType> buildTypes)Called when a new modification (user commit) was detected.voidchangesLoaded(BuildPromotion buildPromotion)This method is called if changes are loaded for a build promotion while it was in the queue or when it was starting.voidchangesLoaded(SRunningBuild build)Called when changes for a newly started build have been loaded successfully.voidcleanupFinished()Called when database cleanup has been finished.voidcleanupStarted()Called when database cleanup is going to start.voidentriesDeleted(Collection<SFinishedBuild> removedEntries)Called after deletion of a set of build history entries Only one ofBuildServerListener.entryDeleted(SFinishedBuild)or this method should be overriden in a listener.voidentryCreated(SFinishedBuild build)Called when build is added to the history.voidentryDeleted(SFinishedBuild entry)Called after deletion of a build history entry.voidlabelingFailed(SBuild build, VcsRoot root, Throwable exception)Labeling process failed for the specified build and root with the specified problem.voidlabelingSucceed(SBuild build, BuildRevision revision)Labeling process succeed for the specified build and revisionvoidmessageReceived(SRunningBuild build, BuildMessage1 message)Deprecated.voidpluginsLoaded()Called when all server plugins are loaded, but beforeServerListener.serverStartup()event.voidresponsibleChanged(SBuildType bt, ResponsibilityEntry oldValue, ResponsibilityEntry newValue)Called when build configuration responsible has changed, or responsibility status has changed
Some events may be omitted when the responsibility was changed on another node, i.e.voidresponsibleChanged(SProject project, Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry)Called when responsibility for several build problems at once is changed.voidresponsibleChanged(SProject project, Collection<TestName> testNames, ResponsibilityEntry entry, boolean isUserAction)Called when responsibility for several tests at once is changed.voidresponsibleChanged(SProject project, TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, boolean isUserAction)Deprecated.voidresponsibleRemoved(SProject project, Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry)Called when responsibility for build problems is removed.voidresponsibleRemoved(SProject project, TestNameResponsibilityEntry entry)Called when responsibility for several tests at once is changed.voidserverConfigurationReloaded()Called after the server configuration is loaded by the server on startup.voidserverShutdown()Called when server shutdown has been started.voidserverShutdownComplete()Event called after server shutdown complete.voidserverStartup()Called when server has been started and its configuration has been loaded from the diskvoidsourcesVersionReleased(BuildAgent agent)Clean sources performed for the given agentvoidsourcesVersionReleased(BuildType configuration)Clean sources performed for the given configuration on all agentsvoidsourcesVersionReleased(BuildType configuration, BuildAgent agent)Clean sources performed for the given configuration on the given agentvoidstatisticValuePublished(SBuild build, String valueTypeKey, BigDecimal value)Called upon statistic-value related to the given build have been publishedvoidtestsMuted(MuteInfo muteInfo)Called when a set of tests are muted (with same mute properties).voidtestsUnmuted(SUser user, Map<MuteInfo,Collection<STest>> unmutedGroups)Called when several of tests have been unmuted.-
Methods inherited from class jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeActiveStatusChanged, buildTypeDeleted, buildTypeDescriptionUpdated, buildTypeExternalIdChanged, buildTypeMoved, buildTypePersisted, buildTypeRegistered, buildTypeRenamed, buildTypeTemplateDeleted, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplatePersisted, buildTypeTemplateRestored, buildTypeUnregistered, projectArchived, projectCreated, projectDearchived, projectDescriptionUpdated, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPersisted, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, projectRemoved, projectRenamed, projectRestored, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootRemoved, vcsRootsPersisted, vcsRootUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ProjectsModelListener
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeActiveStatusChanged, buildTypeDeleted, buildTypeDescriptionUpdated, buildTypeExternalIdChanged, buildTypeMoved, buildTypePersisted, buildTypeRegistered, buildTypeRenamed, buildTypeTemplateDeleted, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplatePersisted, buildTypeTemplateRestored, buildTypeUnregistered, projectArchived, projectCreated, projectDearchived, projectDescriptionUpdated, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPersisted, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, projectRemoved, projectRenamed, projectRestored, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootRemoved, vcsRootsPersisted, vcsRootUpdated
-
-
-
-
Method Detail
-
agentRegistered
public void agentRegistered(@NotNull SBuildAgent agent, long currentlyRunningBuildId)Description copied from interface:BuildServerListenerCalled when build agent is registered (connected)
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentRegisteredin interfaceBuildServerListener- Parameters:
agent- which was registeredcurrentlyRunningBuildId- id of the build which is running on this build agent, -1 if no build is running on agent
-
agentDescriptionUpdated
public void agentDescriptionUpdated(@NotNull SBuildAgent agent)Description copied from interface:BuildServerListenerCalled when build agent description update is finished.
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentDescriptionUpdatedin interfaceBuildServerListener- Parameters:
agent- agent with updated agent description
-
agentsDescriptionUpdated
public void agentsDescriptionUpdated(@NotNull Collection<SBuildAgent> agents)Description copied from interface:BuildServerListenerSame asBuildServerListener.agentDescriptionUpdated(SBuildAgent)but is sent for a number of agents at once.- Specified by:
agentsDescriptionUpdatedin interfaceBuildServerListener- Parameters:
agents- a collection of agents
-
agentUnregistered
@Deprecated public void agentUnregistered(@NotNull SBuildAgent agent)
Deprecated.Description copied from interface:BuildServerListenerCalled after build agent unregistration
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentUnregisteredin interfaceBuildServerListener- Parameters:
agent- which was unregistered
-
agentUnregistered
public void agentUnregistered(@NotNull SBuildAgent agent, @NotNull String reason)Description copied from interface:BuildServerListenerCalled after build agent unregistration
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentUnregisteredin interfaceBuildServerListener- Parameters:
agent- which was unregisteredreason- why the agent unregistered
-
beforeAgentUnregistered
public void beforeAgentUnregistered(@NotNull SBuildAgent agent)Description copied from interface:BuildServerListenerCalled before build agent unregistration
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
beforeAgentUnregisteredin interfaceBuildServerListener- Parameters:
agent- which is about to unregister
-
agentRemoved
public void agentRemoved(@NotNull SBuildAgent agent)Description copied from interface:BuildServerListenerCalled when agent was completely removed from server storage.
The event is not called when the current node doesn't manage agents, i.e. on read-only node- Specified by:
agentRemovedin interfaceBuildServerListener- Parameters:
agent- removed agent- See Also:
see #agentRemoved(int)
-
agentRemoved
public void agentRemoved(int agentId)
Description copied from interface:BuildServerListenerCalled when agent with specified id is removed. If server has agent instance then bothBuildServerListener.agentRemoved(SBuildAgent)and this method are called. If server does not have an agent, for example, if agent was removed by another node, then only this method is called.- Specified by:
agentRemovedin interfaceBuildServerListener- Parameters:
agentId- id of the removed agent
-
buildTypeAddedToQueue
@Deprecated public void buildTypeAddedToQueue(@NotNull SBuildType buildType)
Deprecated.Description copied from interface:BuildServerListenerCalled when build configuration was added to build queue- Specified by:
buildTypeAddedToQueuein interfaceBuildServerListener- Parameters:
buildType- build configuration added to build queue
-
buildTypeAddedToQueue
public void buildTypeAddedToQueue(@NotNull SQueuedBuild queuedBuild)Description copied from interface:BuildServerListenerCalled when build configuration was added to build queue Some events may be missing when the current node is not responsible for managing build queue. For example, on read-only node the event may be skipped if a build was in the queue for a short period of time, i.e. removed shortly after being added.- Specified by:
buildTypeAddedToQueuein interfaceBuildServerListener- Parameters:
queuedBuild- queued build added to the queue
-
buildRemovedFromQueue
public void buildRemovedFromQueue(@NotNull SQueuedBuild queued, User user, String comment)Description copied from interface:BuildServerListenerCalled when a build is removed from the build queue (started, deleted, optimized, etc.) Some events may be missing when the current node is not responsible for managing build queue. For example, on read-only node the event may be skipped if a build was in the queue for a short period of time, i.e. removed shortly after being added.- Specified by:
buildRemovedFromQueuein interfaceBuildServerListener- Parameters:
queued- queued build removed from the queueuser- if build was removed manually, contains the user who removed build configuration from queuecomment- provided by user when removing build from queue
-
buildPinned
public void buildPinned(@NotNull SBuild build, @Nullable User user, @Nullable String comment)Description copied from interface:BuildServerListenerCalled when user pinned the build. NB build could be pinned multiple times without unpinning
userandcommentparameters are omitted (nulls) when the build was pinned on another node (i.e. it's not called on read-only node)- Specified by:
buildPinnedin interfaceBuildServerListener- Parameters:
build- pinned builduser- the user who pinned the buildcomment- comment provided by user when pinning build
-
buildUnpinned
public void buildUnpinned(@NotNull SBuild build, @Nullable User user, @Nullable String comment)Description copied from interface:BuildServerListenerCalled when user unpinned the build. NB build could be unpinned multiple times without pinning
userandcommentparameters are omitted (nulls) when the build was unpinned on another node (i.e. it's not called on read-only node)- Specified by:
buildUnpinnedin interfaceBuildServerListener- Parameters:
build- unpinned builduser- the user who unpinned the buildcomment- comment provided by user when unpinning build
-
buildQueueOrderChanged
public void buildQueueOrderChanged()
Description copied from interface:BuildServerListenerCalled when user reordered build queue order. Is not called when build is started. Some events may be missing when the current node is not responsible for managing build queue. For example, read-only node is not aware of all the queue changes which happened on the main server.- Specified by:
buildQueueOrderChangedin interfaceBuildServerListener
-
changesLoaded
public void changesLoaded(@NotNull BuildPromotion buildPromotion)Description copied from interface:BuildServerListenerThis method is called if changes are loaded for a build promotion while it was in the queue or when it was starting. The method is called regardless of whether the checking for changes operation was successful or not. If operation failed, thenBuildPromotion.isFailedToCollectChanges()will return true. TeamCity collects changes either while the build sits in the queue or when the build just started (after the buildStarted event).- Specified by:
changesLoadedin interfaceBuildServerListener- Parameters:
buildPromotion- a build promotion for which changes have been collected
-
buildStarted
public void buildStarted(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled when build is about to start. Changes are not loaded yet, and build agent didn't start the build yet.- Specified by:
buildStartedin interfaceBuildServerListener- Parameters:
build- build configuration whose status has changed
-
changesLoaded
public void changesLoaded(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled when changes for a newly started build have been loaded successfully. This event is always sent after the buildStarted. If the build changes were collected while the build was sitting in the queue, then this even will still be sent after the build starts. The method is not called if checking for changes operation failed.- Specified by:
changesLoadedin interfaceBuildServerListener- Parameters:
build- build, whose changes are loaded
-
buildChangedStatus
public void buildChangedStatus(@NotNull SRunningBuild build, Status oldStatus, Status newStatus)Description copied from interface:BuildServerListenerCalled when build status changes from successful to failed- Specified by:
buildChangedStatusin interfaceBuildServerListener- Parameters:
build- corresponding running buildoldStatus- previous statusnewStatus- new status
-
buildFinished
public void buildFinished(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled after build finishing, only if build was not interrupted- Specified by:
buildFinishedin interfaceBuildServerListener- Parameters:
build- running build // TODO: shall pass SFinishedBuild as parameter
-
beforeBuildFinish
public void beforeBuildFinish(@NotNull SRunningBuild runningBuild)Description copied from interface:BuildServerListenerCalled right before build finishing, allows to write additional messages to the build log, update build status.- Specified by:
beforeBuildFinishin interfaceBuildServerListener- Parameters:
runningBuild- corresponding running build
-
messageReceived
@Deprecated public void messageReceived(@NotNull SRunningBuild build, @NotNull BuildMessage1 message)
Deprecated.Description copied from interface:BuildServerListenerCalled each time when running build got a message from build agent- Specified by:
messageReceivedin interfaceBuildServerListener- Parameters:
build- running buildmessage- message sent to the build
-
responsibleChanged
public void responsibleChanged(@NotNull SBuildType bt, @NotNull ResponsibilityEntry oldValue, @NotNull ResponsibilityEntry newValue)Description copied from interface:BuildServerListenerCalled when build configuration responsible has changed, or responsibility status has changed
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleChangedin interfaceBuildServerListener- Parameters:
bt- build configurationoldValue- previous responsibility entrynewValue- new responsibility entry
-
responsibleChanged
@Deprecated public void responsibleChanged(@NotNull SProject project, @Nullable TestNameResponsibilityEntry oldValue, @NotNull TestNameResponsibilityEntry newValue, boolean isUserAction)
Deprecated.Description copied from interface:BuildServerListenerCalled when test responsibility is changed.- Specified by:
responsibleChangedin interfaceBuildServerListener- Parameters:
project- the project in which test responsibility has changedoldValue- old responsibility entrynewValue- new responsibility entryisUserAction- true if responsibility status was changed manually via Web UI
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, boolean isUserAction)Description copied from interface:BuildServerListenerCalled when responsibility for several tests at once is changed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleChangedin interfaceBuildServerListener- Parameters:
project- the projecttestNames- test namesentry- the new responsibility entry for each testisUserAction- true if responsibility status was changed manually via Web UI
-
responsibleRemoved
public void responsibleRemoved(@NotNull SProject project, @NotNull TestNameResponsibilityEntry entry)Description copied from interface:BuildServerListenerCalled when responsibility for several tests at once is changed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleRemovedin interfaceBuildServerListener- Parameters:
project- the projectentry- the new responsibility entry for each test
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<BuildProblemInfo> buildProblems, @Nullable ResponsibilityEntry entry)Description copied from interface:BuildServerListenerCalled when responsibility for several build problems at once is changed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleChangedin interfaceBuildServerListener- Parameters:
project- the projectbuildProblems- build problemsentry- the new responsibility entry or null if responsibility is removed (better useBuildServerListener.responsibleRemoved(SProject, Collection, ResponsibilityEntry)method to subscribe to the 'removed' events)
-
responsibleRemoved
public void responsibleRemoved(@NotNull SProject project, @NotNull Collection<BuildProblemInfo> buildProblems, @NotNull ResponsibilityEntry entry)Description copied from interface:BuildServerListenerCalled when responsibility for build problems is removed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleRemovedin interfaceBuildServerListener- Parameters:
project- the projectbuildProblems- build problemsentry- the removed responsibility entry
-
beforeEntryDelete
public void beforeEntryDelete(@NotNull SFinishedBuild entry)Description copied from interface:BuildServerListenerCalled before deletion of the build history entry- Specified by:
beforeEntryDeletein interfaceBuildServerListener- Parameters:
entry- build to be deleted
-
entryDeleted
public void entryDeleted(@NotNull SFinishedBuild entry)Description copied from interface:BuildServerListenerCalled after deletion of a build history entry. Better useBuildServerListener.entriesDeleted(java.util.Collection). Only this method orBuildServerListener.entriesDeleted(java.util.Collection)should be overriden in a listener.- Specified by:
entryDeletedin interfaceBuildServerListener- Parameters:
entry- deleted build- See Also:
BuildServerListener.entriesDeleted(java.util.Collection)
-
entriesDeleted
public void entriesDeleted(@NotNull Collection<SFinishedBuild> removedEntries)Description copied from interface:BuildServerListenerCalled after deletion of a set of build history entries Only one ofBuildServerListener.entryDeleted(SFinishedBuild)or this method should be overriden in a listener.- Specified by:
entriesDeletedin interfaceBuildServerListener- Parameters:
removedEntries- deleted builds
-
entryCreated
public void entryCreated(@NotNull SFinishedBuild build)Description copied from interface:BuildServerListenerCalled when build is added to the history.- Specified by:
entryCreatedin interfaceBuildServerListener
-
serverShutdown
public void serverShutdown()
Description copied from interface:ServerListenerCalled when server shutdown has been started. In addition, this method is called for a plugin before it is unloaded, may be used for releasing resources and cleanup.- Specified by:
serverShutdownin interfaceServerListener
-
serverStartup
public void serverStartup()
Description copied from interface:ServerListenerCalled when server has been started and its configuration has been loaded from the disk- Specified by:
serverStartupin interfaceServerListener
-
pluginsLoaded
public void pluginsLoaded()
Description copied from interface:BuildServerListenerCalled when all server plugins are loaded, but beforeServerListener.serverStartup()event.- Specified by:
pluginsLoadedin interfaceBuildServerListener
-
buildInterrupted
public void buildInterrupted(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled after build finishing, only if build was interrupted- Specified by:
buildInterruptedin interfaceBuildServerListener- Parameters:
build- running build // TODO: shall pass SFinishedBuild as parameter
-
buildDetachedFromAgent
public void buildDetachedFromAgent(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled after build is detached from agent, making the agent available to other builds- Specified by:
buildDetachedFromAgentin interfaceBuildServerListener- Parameters:
build- running build
-
changeAdded
public void changeAdded(@NotNull VcsModification modification, @NotNull VcsRoot root, @Nullable Collection<SBuildType> buildTypes)Description copied from interface:BuildServerListenerCalled 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:
changeAddedin interfaceBuildServerListener- Parameters:
modification- detected VCS modificationroot- VCS root where modification was detectedbuildTypes- 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:BuildServerListenerCalled when the status of an agent is changed by a user
Some events may be skipped when an agent is registered on another node. For example on read-only node the event is not called for an agent which status was changed twice (enabled and then immediately disabled) on the main server.- Specified by:
agentStatusChangedin interfaceBuildServerListener- Parameters:
agent- the agentwasEnabled- the previous statuswasAuthorized- previous authorized state
-
cleanupStarted
public void cleanupStarted()
Description copied from interface:BuildServerListenerCalled when database cleanup is going to start.- Specified by:
cleanupStartedin interfaceBuildServerListener
-
cleanupFinished
public void cleanupFinished()
Description copied from interface:BuildServerListenerCalled when database cleanup has been finished.- Specified by:
cleanupFinishedin interfaceBuildServerListener
-
serverShutdownComplete
public void serverShutdownComplete()
Description copied from interface:BuildServerListenerEvent called after server shutdown complete. Used to terminate hung child processes.- Specified by:
serverShutdownCompletein interfaceBuildServerListener
-
sourcesVersionReleased
public void sourcesVersionReleased(@NotNull BuildAgent agent)Description copied from interface:BuildServerListenerClean sources performed for the given agent- Specified by:
sourcesVersionReleasedin interfaceBuildServerListener- 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:BuildServerListenerClean sources performed for the given configuration on all agents- Specified by:
sourcesVersionReleasedin interfaceBuildServerListener- 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:BuildServerListenerClean sources performed for the given configuration on the given agent- Specified by:
sourcesVersionReleasedin interfaceBuildServerListener- Parameters:
configuration- build configuration, whose sources to cleanagent- agent where to clean sources todo: change to S-interfaces
-
labelingFailed
public void labelingFailed(@NotNull SBuild build, @NotNull VcsRoot root, @NotNull Throwable exception)Description copied from interface:BuildServerListenerLabeling process failed for the specified build and root with the specified problem.- Specified by:
labelingFailedin interfaceBuildServerListener- Parameters:
build- build for which labeling failed.root- root for which labeling failed.exception- labeling cause.
-
labelingSucceed
public void labelingSucceed(@NotNull SBuild build, @NotNull BuildRevision revision)Description copied from interface:BuildServerListenerLabeling process succeed for the specified build and revision- Specified by:
labelingSucceedin interfaceBuildServerListener- Parameters:
build- build for which labeling failed.revision- labeled.
-
buildTagsChanged
@Deprecated public void buildTagsChanged(@NotNull SBuild build, @NotNull List<String> oldTags, @NotNull List<String> newTags)
Deprecated.Description copied from interface:BuildServerListenerCalled when build tags have been set to specified values- Specified by:
buildTagsChangedin interfaceBuildServerListener- Parameters:
build- corresponding build, which tags have been setoldTags- previous tags on the buildnewTags- new tags on the build
-
buildTagsChanged
@Deprecated public void buildTagsChanged(@NotNull SBuild build, User user, @NotNull List<String> oldTags, @NotNull List<String> newTags)
Deprecated.Description copied from interface:BuildServerListenerCalled when build tags have been set to specified values- Specified by:
buildTagsChangedin interfaceBuildServerListener- Parameters:
build- corresponding build, which tags have been setuser- user who set new tagsoldTags- previous tags on the buildnewTags- new tags on the build
-
buildPromotionTagsChanged
public void buildPromotionTagsChanged(@NotNull BuildPromotion buildPromotion, @Nullable User user, @NotNull Collection<TagData> oldTags, @NotNull Collection<TagData> newTags)Description copied from interface:BuildServerListenerCalled when build promotion tags have been set to specified values
Some parameters may be omitted when the tags were changed on another node (i.e. when the event is called on read-only node):useris null,oldTagsare empty.- Specified by:
buildPromotionTagsChangedin interfaceBuildServerListener- Parameters:
buildPromotion- corresponding build promotion, which tags have been setuser- user who set new tagsoldTags- previous tags on the build promotion (public and private)newTags- new tags on the build promotion (public and private)
-
buildCommented
public void buildCommented(@NotNull SBuild build, @Nullable User user, @Nullable String comment)Description copied from interface:BuildServerListenerCalled when user comment the build.
userandcommentparameters are omitted (nulls) when the build was commented on another node (i.e. when the event is called on read-only node).- Specified by:
buildCommentedin interfaceBuildServerListener- Parameters:
build- commented builduser- the user who commented the buildcomment- comment provided by user
-
beforeServerConfigurationLoaded
public void beforeServerConfigurationLoaded()
Description copied from interface:BuildServerListenerCalled before the server configuration is loaded by the server on startup.- Specified by:
beforeServerConfigurationLoadedin interfaceBuildServerListener
-
serverConfigurationReloaded
public void serverConfigurationReloaded()
Description copied from interface:BuildServerListenerCalled after the server configuration is loaded by the server on startup.- Specified by:
serverConfigurationReloadedin interfaceBuildServerListener
-
testsMuted
public void testsMuted(@NotNull MuteInfo muteInfo)Description copied from interface:BuildServerListenerCalled when a set of tests are muted (with same mute properties). All tests are in the same project.
The method in not called when the test was muted on another node (i.e. when the current node is a read-only node)- Specified by:
testsMutedin interfaceBuildServerListener- Parameters:
muteInfo- mute info
-
testsUnmuted
public void testsUnmuted(@Nullable SUser user, @NotNull Map<MuteInfo,Collection<STest>> unmutedGroups)Description copied from interface:BuildServerListenerCalled when several of tests have been unmuted. Tests can be belong to several projects.
The method in not called when the test was unmuted on another node (i.e. when the current node is a read-only node)- Specified by:
testsUnmutedin interfaceBuildServerListener- 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 List<BuildProblemData> before, @NotNull List<BuildProblemData> after)Description copied from interface:BuildServerListenerCalled when list of build problems changes (problems added, removed)
beforeparameter may be empty or contain some outdated data when the problems are changed on another node:- current node is main server but the problem was added on messages processing node
- current node is read-only but the problem was added on the main server
- Specified by:
buildProblemsChangedin interfaceBuildServerListener- Parameters:
build- corresponding buildbefore- list of build problems before changeafter- list of build problems after change
-
statisticValuePublished
public void statisticValuePublished(@NotNull SBuild build, @NotNull String valueTypeKey, @NotNull BigDecimal value)Description copied from interface:BuildServerListenerCalled upon statistic-value related to the given build have been published- Specified by:
statisticValuePublishedin interfaceBuildServerListener- Parameters:
build- build this particular value pertains tovalueTypeKey- target statistic-value's type-keyvalue- target build-value
-
buildProblemsMuted
public void buildProblemsMuted(@NotNull MuteInfo muteInfo)Description copied from interface:BuildServerListenerCalled when a set of build problems are muted (with same mute properties). All problems belong the same project.
The method in not called when the problem was muted on another node (i.e. when the current node is a read-only node)- Specified by:
buildProblemsMutedin interfaceBuildServerListener- Parameters:
muteInfo- mute info
-
buildProblemsUnmuted
public void buildProblemsUnmuted(@Nullable SUser user, @NotNull Map<MuteInfo,Collection<BuildProblemInfo>> unmutedGroups)Description copied from interface:BuildServerListenerCalled when a set of build problems are unmuted. Problems can be belong to several projects.
The method in not called when the problem was unmuted on another node (i.e. when the current node is a read-only node)- Specified by:
buildProblemsUnmutedin interfaceBuildServerListener- Parameters:
user- user that unmuted problems, or null if they were unmuted automatically.unmutedGroups- groups of build problems that were unmuted.
-
buildArtifactsChanged
public void buildArtifactsChanged(@NotNull SBuild build)Description copied from interface:BuildServerListenerCalled when build artifacts are changed by the server on disk, for example, when cleanup removed some files.- Specified by:
buildArtifactsChangedin interfaceBuildServerListener- Parameters:
build- build whose artifacts were changed
-
-