|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.serverSide.BuildServerAdapter
public class BuildServerAdapter
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 |
beforeBuildFinish(SRunningBuild runningBuild,
boolean buildFailed)
|
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 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 specifiled 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 specifiled 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 configration was added to build queue |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildServerAdapter()
| Method Detail |
|---|
public void agentRegistered(SBuildAgent agent,
long currentlyRunningBuildId)
BuildServerListener
agentRegistered in interface BuildServerListeneragent - which was registeredcurrentlyRunningBuildId - id of the build which is running on this build agent
public void agentDescriptionUpdated(@NotNull
SBuildAgent agent)
BuildServerListener
agentDescriptionUpdated in interface BuildServerListeneragent - agent with updated agent descriptionpublic void agentUnregistered(SBuildAgent agent)
BuildServerListener
agentUnregistered in interface BuildServerListeneragent - which was unregisteredpublic void beforeAgentUnregistered(SBuildAgent agent)
BuildServerListener
beforeAgentUnregistered in interface BuildServerListeneragent - which is about to unregisterpublic void agentRemoved(SBuildAgent agent)
BuildServerListener
agentRemoved in interface BuildServerListeneragent - removed agentpublic void buildTypeAddedToQueue(SBuildType buildType)
BuildServerListener
buildTypeAddedToQueue in interface BuildServerListenerbuildType - build configuration added to build queue
public void buildTypeAddedToQueue(@NotNull
SQueuedBuild queuedBuild)
BuildServerListener
buildTypeAddedToQueue in interface BuildServerListenerqueuedBuild - queued build added to the queue
public void buildRemovedFromQueue(@NotNull
SQueuedBuild queued,
User user,
java.lang.String comment)
BuildServerListener
buildRemovedFromQueue in interface BuildServerListenerqueued - 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
public void buildPinned(@NotNull
SBuild build,
@Nullable
User user,
@Nullable
java.lang.String comment)
BuildServerListener
buildPinned in interface BuildServerListenerbuild - pinned builduser - the user who pinned the buildcomment - comment provided by user when pinning build
public void buildUnpinned(@NotNull
SBuild build,
@Nullable
User user,
@Nullable
java.lang.String comment)
BuildServerListener
buildUnpinned in interface BuildServerListenerbuild - unpinned builduser - the user who unpinned the buildcomment - comment provided by user when unpinning buildpublic void buildQueueOrderChanged()
BuildServerListener
buildQueueOrderChanged in interface BuildServerListenerpublic void buildTypeRegistered(SBuildType buildType)
BuildServerListener
buildTypeRegistered in interface BuildServerListenerbuildType - registered build configurationpublic void buildTypeUnregistered(SBuildType buildType)
BuildServerListener
buildTypeUnregistered in interface BuildServerListenerbuildType - unregistered build configuration
public void buildTypeMoved(SBuildType buildType,
SProject original)
BuildServerListener
buildTypeMoved in interface BuildServerListenerbuildType - build typeoriginal - the original project
public void beforeBuildTypeDeleted(@NotNull
java.lang.String buildTypeId)
BuildServerListener
beforeBuildTypeDeleted in interface BuildServerListenerbuildTypeId - id of build configuration
public void buildTypeDeleted(@NotNull
java.lang.String buildTypeId)
BuildServerListener
buildTypeDeleted in interface BuildServerListenerbuildTypeId - id of build configuration
public void buildTypeTemplateDeleted(@NotNull
java.lang.String buildTypeTemplateId)
BuildServerListener
buildTypeTemplateDeleted in interface BuildServerListenerbuildTypeTemplateId - id of build configuration templatepublic void buildTypeActiveStatusChanged(SBuildType buildType)
BuildServerListener
buildTypeActiveStatusChanged in interface BuildServerListenerbuildType - build configuration whose status has changedpublic void buildStarted(SRunningBuild build)
BuildServerListener
buildStarted in interface BuildServerListenerbuild - build configuration whose status has changedpublic void changesLoaded(SRunningBuild build)
BuildServerListener
changesLoaded in interface BuildServerListenerbuild - build, whose changes are loaded
public void buildChangedStatus(SRunningBuild build,
Status oldStatus,
Status newStatus)
BuildServerListener
buildChangedStatus in interface BuildServerListenerbuild - corresponding running buildoldStatus - previous statusnewStatus - new statuspublic void buildFinished(SRunningBuild build)
BuildServerListener
buildFinished in interface BuildServerListenerbuild - running build
// TODO: shall pass SFinishedBuild as parameterpublic void beforeBuildFinish(SRunningBuild runningBuild)
BuildServerListener
beforeBuildFinish in interface BuildServerListenerrunningBuild - corresponding running build
public void beforeBuildFinish(SRunningBuild runningBuild,
boolean buildFailed)
beforeBuildFinish in interface BuildServerListener
public void messageReceived(SRunningBuild build,
BuildMessage1 message)
BuildServerListener
messageReceived in interface BuildServerListenerbuild - running buildmessage - message sent to the build
public void responsibleChanged(@NotNull
SBuildType bt,
@NotNull
ResponsibilityInfo oldValue,
@NotNull
ResponsibilityInfo newValue,
boolean isUserAction)
BuildServerListener
responsibleChanged in interface BuildServerListenerbt - build configurationoldValue - previous responsibility statenewValue - new responsibility stateisUserAction - true if responsibility status was changed manually via Web UI
public void responsibleChanged(@NotNull
SProject project,
@Nullable
TestNameResponsibilityEntry oldValue,
@NotNull
TestNameResponsibilityEntry newValue,
boolean isUserAction)
BuildServerListener
responsibleChanged in interface BuildServerListenerproject - the project in which test responsibility has changedoldValue - old responsibility entrynewValue - new responsibility entryisUserAction - true if responsibility status was changed manually via Web UI
public void responsibleChanged(@NotNull
SProject project,
@NotNull
java.util.Collection<TestName> testNames,
@NotNull
ResponsibilityEntry entry,
boolean isUserAction)
BuildServerListener
responsibleChanged in interface BuildServerListenerproject - the projecttestNames - test namesentry - the new responsibility entry for each testisUserAction - true if responsibility status was changed manually via Web UIpublic void beforeEntryDelete(SFinishedBuild entry)
BuildServerListener
beforeEntryDelete in interface BuildServerListenerentry - build to be deletedpublic void entryDeleted(SFinishedBuild entry)
BuildServerListener
entryDeleted in interface BuildServerListenerentry - deleted buildpublic void projectCreated(java.lang.String projectId)
BuildServerListener
projectCreated in interface BuildServerListenerprojectId - id of the created projectpublic void projectRemoved(java.lang.String projectId)
BuildServerListener
projectRemoved in interface BuildServerListenerprojectId - deleted projectIdpublic void projectPersisted(java.lang.String projectId)
BuildServerListener
projectPersisted in interface BuildServerListenerprojectId - id of the saved projectpublic void projectRestored(java.lang.String projectId)
BuildServerListener
projectRestored in interface BuildServerListenerprojectId - id of the reloaded projectpublic void projectArchived(java.lang.String projectId)
BuildServerListener
projectArchived in interface BuildServerListenerprojectId - id of archived projectpublic void projectDearchived(java.lang.String projectId)
BuildServerListener
projectDearchived in interface BuildServerListenerprojectId - id of dearchived projectpublic void serverShutdown()
BuildServerListener
serverShutdown in interface BuildServerListenerpublic void serverStartup()
BuildServerListener
serverStartup in interface BuildServerListenerpublic void pluginsLoaded()
BuildServerListener
pluginsLoaded in interface BuildServerListenerpublic void buildInterrupted(SRunningBuild build)
BuildServerListener
buildInterrupted in interface BuildServerListenerbuild - running build
// TODO: shall pass SFinishedBuild as parameter
public void changeAdded(@NotNull
VcsModification modification,
@NotNull
VcsRoot root,
@Nullable
java.util.Collection<SBuildType> buildTypes)
BuildServerListener
changeAdded in interface BuildServerListenermodification - 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
public void agentStatusChanged(@NotNull
SBuildAgent agent,
boolean wasEnabled,
boolean wasAuthorized)
BuildServerListener
agentStatusChanged in interface BuildServerListeneragent - the agentwasEnabled - the previous statuswasAuthorized - previous authorized statepublic void cleanupStarted()
BuildServerListener
cleanupStarted in interface BuildServerListenerpublic void cleanupFinished()
BuildServerListener
cleanupFinished in interface BuildServerListenerpublic void serverShutdownComplete()
BuildServerListener
serverShutdownComplete in interface BuildServerListener
public void sourcesVersionReleased(@NotNull
BuildAgent agent)
BuildServerListener
sourcesVersionReleased in interface BuildServerListeneragent - build agent whose sources are about to clean
todo: change to S-interfaces
public void sourcesVersionReleased(@NotNull
BuildType configuration)
BuildServerListener
sourcesVersionReleased in interface BuildServerListenerconfiguration - build configuration, whose sources to clean
todo: change to S-interfaces
public void sourcesVersionReleased(@NotNull
BuildType configuration,
@NotNull
BuildAgent agent)
BuildServerListener
sourcesVersionReleased in interface BuildServerListenerconfiguration - build configuration, whose sources to cleanagent - agent where to clean sources
todo: change to S-interfaces
public void labelingFailed(SBuild build,
VcsRoot root,
java.lang.Throwable exception)
BuildServerListener
labelingFailed in interface BuildServerListenerbuild - build for which labeling failed.root - root for which labeling failed.exception - labeling cause.
public void labelingSucceed(SBuild build,
BuildRevision revision)
BuildServerListener
labelingSucceed in interface BuildServerListenerbuild - build for which labeling failed.revision - labeled.
public void buildTagsChanged(SBuild build,
java.util.List<java.lang.String> oldTags,
java.util.List<java.lang.String> newTags)
BuildServerListener
buildTagsChanged in interface BuildServerListenerbuild - corresponding build, which tags have been setoldTags - previous tags on the buildnewTags - new tags on the build
public void buildTagsChanged(SBuild build,
User user,
java.util.List<java.lang.String> oldTags,
java.util.List<java.lang.String> newTags)
BuildServerListener
buildTagsChanged in interface BuildServerListenerbuild - corresponding build, which tags have been setuser - user who set new tagsoldTags - previous tags on the buildnewTags - new tags on the build
public void buildCommented(@NotNull
SBuild build,
@Nullable
User user,
@Nullable
java.lang.String comment)
BuildServerListener
buildCommented in interface BuildServerListenerbuild - commented builduser - the user who commented the buildcomment - comment provided by userpublic void serverConfigurationReloaded()
BuildServerListener
serverConfigurationReloaded in interface BuildServerListenerpublic void vcsRootsPersisted()
BuildServerListener
vcsRootsPersisted in interface BuildServerListener
public void vcsRootRemoved(@NotNull
SVcsRoot root)
BuildServerListener
vcsRootRemoved in interface BuildServerListenerroot - vcs root
public void vcsRootUpdated(@NotNull
SVcsRoot oldVcsRoot,
@NotNull
SVcsRoot newVcsRoot)
BuildServerListener
vcsRootUpdated in interface BuildServerListener
public void testsMuted(@NotNull
MuteInfo muteInfo)
BuildServerListener
testsMuted in interface BuildServerListenermuteInfo - mute info
public void testsUnmuted(@NotNull
SProject project,
@NotNull
java.util.Collection<com.intellij.openapi.util.Pair<MuteInfo,java.util.Collection<STest>>> unmutedGroups)
BuildServerListener
testsUnmuted in interface BuildServerListenerproject - 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 | ||||||||