|
|||||||||
| 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 |
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 |
buildTypeRemovedFromQueue(SBuildType buildType,
User user,
java.lang.String comment,
java.lang.String requestor,
java.util.Date whenQueued)
Deprecated. |
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 |
changeAdded(VcsModification modification,
VcsRoot root,
SRunningBuild startingBuild)
Deprecated. |
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 |
projectCreated(java.lang.String projectId)
Generated when new project was created |
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 |
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 |
| Method Detail |
|---|
void agentRegistered(SBuildAgent agent,
long currentlyRunningBuildId)
agent - which was registeredcurrentlyRunningBuildId - id of the build which is running on this build agentvoid 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 buildTypeRemovedFromQueue(SBuildType buildType,
User user,
java.lang.String comment,
java.lang.String requestor,
java.util.Date whenQueued)
buildType - build configuration descriptoruser - if build was removed manually, contains the user who removed build configuration from queuecomment - provided by user when removeding build from queuerequestor - initial requestor who put build configuration to queuewhenQueued - time when build was added to 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 configurationvoid 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 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 serverShutdown()
void serverStartup()
void pluginsLoaded()
void changeAdded(VcsModification modification,
VcsRoot root,
SRunningBuild startingBuild)
modification - detected user modificationroot - VCS root, modification belongs tostartingBuild - build is being started when the change was loaded (checking for changes was made during the build start), null
if change was loaded during regular checking for changes process.
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
void sourcesVersionReleased(@NotNull
BuildType configuration)
configuration - build configuration, whose sources to clean
void sourcesVersionReleased(@NotNull
BuildType configuration,
@NotNull
BuildAgent agent)
configuration - build configuration, whose sources to cleanagent - agent where to clean sources
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||