|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BuildServerListener
Generic TeamCity server listeners. Most operations with builds, agents, queue can be detected by implementing this listener.
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 |
beforeBuildFinish(SRunningBuild runningBuild,
boolean buildFailed)
Deprecated. see beforeBuildFinish(SRunningBuild runningBuild) |
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 |
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)
Called when build tags have been set to specifiled values |
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 configration was added to build queue |
void |
buildTypeDeleted(java.lang.String buildTypeId)
Called after the cleaning the build configuration data from the database. |
void |
buildTypeMoved(SBuildType buildType,
SProject original)
Called when build configuration is moved to another project. |
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 |
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)
Occurres 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)
Generated when new project was created |
void |
projectDearchived(java.lang.String projectId)
Called when project has been dearchived |
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,
ResponsibilityInfo oldValue,
ResponsibilityInfo newValue,
boolean isUserAction)
Called when build configuration responsible has changed, or responsibility status has 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 |
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 configuraton on all agents |
void |
sourcesVersionReleased(BuildType configuration,
BuildAgent agent)
Clean sources performed for the given configuraton on the given agent |
void |
testsMuted(MuteInfo muteInfo)
Called when a set of tests are muted (with same mute properties). |
void |
testsUnmuted(SProject project,
java.util.Collection<com.intellij.openapi.util.Pair<MuteInfo,java.util.Collection<STest>>> unmutedGroups)
Called when several of tests have been unmuted. |
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 has c |
| Method Detail |
|---|
void agentRegistered(SBuildAgent agent,
long currentlyRunningBuildId)
agent - which was registeredcurrentlyRunningBuildId - id of the build which is running on this build agent
void agentDescriptionUpdated(@NotNull
SBuildAgent agent)
agent - agent with updated agent descriptionvoid beforeAgentUnregistered(SBuildAgent agent)
agent - which is about to unregistervoid agentUnregistered(SBuildAgent agent)
agent - which was unregistered
void agentStatusChanged(@NotNull
SBuildAgent agent,
boolean wasEnabled,
boolean wasAuthorized)
agent - the agentwasEnabled - the previous statuswasAuthorized - previous authorized statevoid agentRemoved(SBuildAgent agent)
agent - removed agentvoid buildTypeAddedToQueue(SBuildType buildType)
buildType - build configuration added to build queue
void buildTypeAddedToQueue(@NotNull
SQueuedBuild queuedBuild)
queuedBuild - queued build added to the queue
void buildRemovedFromQueue(@NotNull
SQueuedBuild queuedBuild,
User user,
java.lang.String comment)
queuedBuild - queued build removed from the queueuser - if build was removed manually, contains the user who removed build configuration from queuecomment - provided by user when removeding build from queue
void buildPinned(@NotNull
SBuild build,
@Nullable
User user,
@Nullable
java.lang.String comment)
build - pinned builduser - the user who pinned the buildcomment - comment provided by user when pinning build
void buildUnpinned(@NotNull
SBuild build,
@Nullable
User user,
@Nullable
java.lang.String comment)
build - unpinned builduser - the user who unpinned the buildcomment - comment provided by user when unpinning buildvoid buildQueueOrderChanged()
void buildTypeRegistered(SBuildType buildType)
buildType - registered build configurationvoid buildTypeUnregistered(SBuildType buildType)
buildType - unregistered build configuration
void buildTypeMoved(SBuildType buildType,
SProject original)
buildType - build typeoriginal - the original project
void beforeBuildTypeDeleted(@NotNull
java.lang.String buildTypeId)
buildTypeId - id of build configuration
void buildTypeDeleted(@NotNull
java.lang.String buildTypeId)
buildTypeId - id of build configuration
void buildTypeTemplateDeleted(@NotNull
java.lang.String buildTypeTemplateId)
buildTypeTemplateId - id of build configuration templatevoid buildTypeActiveStatusChanged(SBuildType buildType)
buildType - build configuration whose status has changedvoid buildStarted(SRunningBuild build)
build - build configuration whose status has changedvoid changesLoaded(SRunningBuild build)
build - build, whose changes are loaded
void buildChangedStatus(SRunningBuild build,
Status oldStatus,
Status newStatus)
build - corresponding running buildoldStatus - previous statusnewStatus - new status
void beforeBuildFinish(SRunningBuild runningBuild,
boolean buildFailed)
void beforeBuildFinish(SRunningBuild runningBuild)
runningBuild - corresponding running buildvoid buildFinished(SRunningBuild build)
build - running build
// TODO: shall pass SFinishedBuild as parametervoid buildInterrupted(SRunningBuild build)
build - running build
// TODO: shall pass SFinishedBuild as parameter
void messageReceived(SRunningBuild build,
BuildMessage1 message)
build - running buildmessage - message sent to the build
void responsibleChanged(@NotNull
SBuildType bt,
@NotNull
ResponsibilityInfo oldValue,
@NotNull
ResponsibilityInfo newValue,
boolean isUserAction)
bt - build configurationoldValue - previous responsibility statenewValue - new responsibility stateisUserAction - true if responsibility status was changed manually via Web UI
void responsibleChanged(@NotNull
SProject project,
@Nullable
TestNameResponsibilityEntry oldValue,
@NotNull
TestNameResponsibilityEntry newValue,
boolean isUserAction)
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
void responsibleChanged(@NotNull
SProject project,
@NotNull
java.util.Collection<TestName> testNames,
@NotNull
ResponsibilityEntry entry,
boolean isUserAction)
project - the projecttestNames - test namesentry - the new responsibility entry for each testisUserAction - true if responsibility status was changed manually via Web UIvoid beforeEntryDelete(SFinishedBuild entry)
entry - build to be deletedvoid entryDeleted(SFinishedBuild entry)
entry - deleted buildvoid projectCreated(java.lang.String projectId)
projectId - id of the created projectvoid projectRemoved(java.lang.String projectId)
projectId - deleted projectIdvoid projectPersisted(java.lang.String projectId)
projectId - id of the saved projectvoid projectRestored(java.lang.String projectId)
projectId - id of the reloaded projectvoid projectArchived(java.lang.String projectId)
projectId - id of archived projectvoid projectDearchived(java.lang.String projectId)
projectId - id of dearchived projectvoid serverShutdown()
void serverStartup()
void pluginsLoaded()
void changeAdded(@NotNull
VcsModification modification,
@NotNull
VcsRoot root,
@Nullable
java.util.Collection<SBuildType> buildTypes)
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 performedvoid cleanupStarted()
void cleanupFinished()
void serverShutdownComplete()
void sourcesVersionReleased(@NotNull
BuildAgent agent)
agent - build agent whose sources are about to clean
todo: change to S-interfaces
void sourcesVersionReleased(@NotNull
BuildType configuration)
configuration - build configuration, whose sources to clean
todo: change to S-interfaces
void sourcesVersionReleased(@NotNull
BuildType configuration,
@NotNull
BuildAgent agent)
configuration - build configuration, whose sources to cleanagent - agent where to clean sources
todo: change to S-interfaces
void labelingFailed(SBuild build,
VcsRoot root,
java.lang.Throwable exception)
build - build for which labeling failed.root - root for which labeling failed.exception - labeling cause.
void labelingSucceed(SBuild build,
BuildRevision revision)
build - build for which labeling failed.revision - labeled.
void buildTagsChanged(SBuild build,
java.util.List<java.lang.String> oldTags,
java.util.List<java.lang.String> newTags)
buildTagsChanged(SBuild, User, List, List)
build - corresponding build, which tags have been setoldTags - previous tags on the buildnewTags - new tags on the build
void buildTagsChanged(SBuild build,
User user,
java.util.List<java.lang.String> oldTags,
java.util.List<java.lang.String> newTags)
build - corresponding build, which tags have been setuser - user who set new tagsoldTags - previous tags on the buildnewTags - new tags on the build
void buildCommented(@NotNull
SBuild build,
@Nullable
User user,
@Nullable
java.lang.String comment)
build - commented builduser - the user who commented the buildcomment - comment provided by uservoid serverConfigurationReloaded()
void vcsRootsPersisted()
void vcsRootRemoved(@NotNull
SVcsRoot root)
root - vcs root
void vcsRootUpdated(@NotNull
SVcsRoot oldVcsRoot,
@NotNull
SVcsRoot newVcsRoot)
oldVcsRoot - newVcsRoot -
void testsMuted(@NotNull
MuteInfo muteInfo)
muteInfo - mute info
void testsUnmuted(@NotNull
SProject project,
@NotNull
java.util.Collection<com.intellij.openapi.util.Pair<MuteInfo,java.util.Collection<STest>>> unmutedGroups)
project - project where tests were unmuted.unmutedGroups - groups of tests that were unmuted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||