|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.agent.AgentLifeCycleAdapter
public class AgentLifeCycleAdapter
Base class for agent listeners
| Constructor Summary | |
|---|---|
AgentLifeCycleAdapter()
|
|
| Method Summary | |
|---|---|
void |
afterAgentConfigurationLoaded(BuildAgent agent)
is called after build agent loaded it's properties and it is called before AgentLifeCycleListener.agentInitialized(BuildAgent)
This is a right place to update loaded environment and set agent-wide properties
using BuildAgentConfiguration interface |
void |
afterAtrifactsPublished(AgentRunningBuild runningBuild,
BuildFinishedStatus status)
Called when all artifacts were published to the server |
void |
agentInitialized(BuildAgent agent)
Called when method BuildAgent.init(String[]) finished |
void |
agentShutdown()
Called before agent shutdown |
void |
agentStarted(BuildAgent agent)
Called after the agent BuildAgent.start() method
Agent XML-RPC server is started. |
void |
beforeAgentConfigurationLoaded(BuildAgent agent)
is called before build agent loaded it's properties and it is called before AgentLifeCycleListener.agentInitialized(BuildAgent)
This is a right place to detect environment and set agent-wide properties
using BuildAgentConfiguration interface |
void |
beforeBuildFinish(AgentRunningBuild build,
BuildFinishedStatus buildStatus)
Called after finishing build but before buildFinished event is sent to the server Is called after AgentLifeCycleListener.beforeRunnerStart(AgentRunningBuild) or AgentLifeCycleListener.beforeBuildInterrupted(AgentRunningBuild, BuildInterruptReason) |
void |
beforeBuildFinish(BuildFinishedStatus buildStatus)
Deprecated. |
void |
beforeBuildInterrupted(AgentRunningBuild runningBuild,
BuildInterruptReason reason)
Is called after AgentLifeCycleListener.beforeRunnerStart(AgentRunningBuild)
Called before build is forcibly terminated. |
void |
beforeRunnerStart(AgentRunningBuild runningBuild)
Deprecated. |
void |
beforeRunnerStart(BuildRunnerContext runner)
Called when the build preparation phase is done (sources are gotten, patch is applied, etc.) a runner is about to be launched. |
void |
buildFinished(AgentRunningBuild build,
BuildFinishedStatus buildStatus)
Called after the buildFinished event is sent to the server Is called after AgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this event |
void |
buildFinished(BuildFinishedStatus buildStatus)
Deprecated. |
void |
buildStarted(AgentRunningBuild runningBuild)
Called after agent receives start build command from the server. |
void |
checkoutDirectoryRemoved(java.io.File checkoutDir)
Called when a build checkout directory was removed from build agent 'work' directory. |
void |
messageLogged(AgentRunningBuild build,
BuildMessage1 buildMessage)
Called when a build message logged |
void |
messageLogged(BuildMessage1 buildMessage)
Called when a build message logged See AgentLifeCycleListener.messageLogged(AgentRunningBuild, jetbrains.buildServer.messages.BuildMessage1) |
void |
personalPatchApplied(AgentRunningBuild runningBuild)
Called when personal patch is applied to checkout directory. |
void |
personalPatchReverted(AgentRunningBuild runningBuild)
Called when personal patch is reverted Will not be called if build is not personal |
void |
pluginsLoaded()
Called after plugin manager has loaded all pluings. |
void |
runnerFinished(BuildRunnerContext runner,
BuildFinishedStatus status)
Called after AgentLifeCycleListener.beforeRunnerStart(BuildRunnerContext). |
void |
sourcesUpdated(AgentRunningBuild runningBuild)
Called when non personal changes are applied to checkout directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentLifeCycleAdapter()
| Method Detail |
|---|
public void beforeAgentConfigurationLoaded(@NotNull
BuildAgent agent)
AgentLifeCycleListenerAgentLifeCycleListener.agentInitialized(BuildAgent)
This is a right place to detect environment and set agent-wide properties
using BuildAgentConfiguration interface
beforeAgentConfigurationLoaded in interface AgentLifeCycleListeneragent - agent
public void afterAgentConfigurationLoaded(@NotNull
BuildAgent agent)
AgentLifeCycleListenerAgentLifeCycleListener.agentInitialized(BuildAgent)
This is a right place to update loaded environment and set agent-wide properties
using BuildAgentConfiguration interface
afterAgentConfigurationLoaded in interface AgentLifeCycleListeneragent - agentpublic void pluginsLoaded()
AgentLifeCycleListener
pluginsLoaded in interface AgentLifeCycleListener
public void agentInitialized(@NotNull
BuildAgent agent)
AgentLifeCycleListenerBuildAgent.init(String[]) finished
agentInitialized in interface AgentLifeCycleListeneragent - build agent
public void agentStarted(@NotNull
BuildAgent agent)
AgentLifeCycleListenerBuildAgent.start() method
Agent XML-RPC server is started.
You can register your custom XML-RPC handlers here by calling
BuildAgent.getXmlRpcHandlerManager()
Build agent is ready to accept connections from Server
agentStarted in interface AgentLifeCycleListeneragent - build agentpublic void agentShutdown()
AgentLifeCycleListener
agentShutdown in interface AgentLifeCycleListener
public void buildStarted(@NotNull
AgentRunningBuild runningBuild)
AgentLifeCycleListenerAgentPropertiesExtension
agent extension. Note, methods from that interface are called before that method.
buildStarted in interface AgentLifeCycleListenerrunningBuild - information about running build
public void sourcesUpdated(@NotNull
AgentRunningBuild runningBuild)
AgentLifeCycleListenerAgentLifeCycleListener.buildStarted(AgentRunningBuild) called.
Will not be called if checkout mode is set to manual.
sourcesUpdated in interface AgentLifeCycleListenerrunningBuild - current running build
public void personalPatchApplied(@NotNull
AgentRunningBuild runningBuild)
AgentLifeCycleListener
personalPatchApplied in interface AgentLifeCycleListenerrunningBuild - current running build
@Deprecated
public void beforeRunnerStart(@NotNull
AgentRunningBuild runningBuild)
AgentLifeCycleListenerAgentLifeCycleListener.buildStarted(AgentRunningBuild)
beforeRunnerStart in interface AgentLifeCycleListenerrunningBuild - running build
public void beforeRunnerStart(@NotNull
BuildRunnerContext runner)
AgentLifeCycleListenerAgentLifeCycleListener.buildStarted(AgentRunningBuild),
AgentLifeCycleListener.sourcesUpdated(AgentRunningBuild), AgentLifeCycleListener.personalPatchApplied(AgentRunningBuild)
beforeRunnerStart in interface AgentLifeCycleListenerrunner - current runner context parameters
public void runnerFinished(@NotNull
BuildRunnerContext runner,
@NotNull
BuildFinishedStatus status)
AgentLifeCycleListenerAgentLifeCycleListener.beforeRunnerStart(BuildRunnerContext).
This notification is sent when build runner has finished, crashed or was interrupted.
runnerFinished in interface AgentLifeCycleListenerrunner - current runner context parametersstatus - status of process run
public void beforeBuildInterrupted(@NotNull
AgentRunningBuild runningBuild,
@NotNull
BuildInterruptReason reason)
AgentLifeCycleListenerAgentLifeCycleListener.beforeRunnerStart(AgentRunningBuild)
Called before build is forcibly terminated.
For example:
beforeBuildInterrupted in interface AgentLifeCycleListenerrunningBuild - runinng buildreason - reason of build interruption
@Deprecated
public void beforeBuildFinish(@NotNull
BuildFinishedStatus buildStatus)
AgentLifeCycleListenerAgentLifeCycleListener.beforeRunnerStart(AgentRunningBuild) or AgentLifeCycleListener.beforeBuildInterrupted(AgentRunningBuild, BuildInterruptReason)
beforeBuildFinish in interface AgentLifeCycleListenerbuildStatus - status of the build
public void beforeBuildFinish(@NotNull
AgentRunningBuild build,
@NotNull
BuildFinishedStatus buildStatus)
AgentLifeCycleListenerAgentLifeCycleListener.beforeRunnerStart(AgentRunningBuild) or AgentLifeCycleListener.beforeBuildInterrupted(AgentRunningBuild, BuildInterruptReason)
beforeBuildFinish in interface AgentLifeCycleListenerbuild - buildbuildStatus - status of the build
public void personalPatchReverted(@NotNull
AgentRunningBuild runningBuild)
AgentLifeCycleListener
personalPatchReverted in interface AgentLifeCycleListenerrunningBuild - current running build
public void afterAtrifactsPublished(@NotNull
AgentRunningBuild runningBuild,
@NotNull
BuildFinishedStatus status)
AgentLifeCycleListener
afterAtrifactsPublished in interface AgentLifeCycleListenerrunningBuild - current running buildstatus - build status
@Deprecated
public void buildFinished(@NotNull
BuildFinishedStatus buildStatus)
AgentLifeCycleListenerAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this event
buildFinished in interface AgentLifeCycleListenerbuildStatus - status of the build
public void buildFinished(@NotNull
AgentRunningBuild build,
@NotNull
BuildFinishedStatus buildStatus)
AgentLifeCycleListenerAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this event
buildFinished in interface AgentLifeCycleListenerbuild - buildbuildStatus - status of the build
public void messageLogged(@NotNull
BuildMessage1 buildMessage)
AgentLifeCycleListenerAgentLifeCycleListener.messageLogged(AgentRunningBuild, jetbrains.buildServer.messages.BuildMessage1)
messageLogged in interface AgentLifeCycleListenerbuildMessage - build message
public void messageLogged(@NotNull
AgentRunningBuild build,
@NotNull
BuildMessage1 buildMessage)
AgentLifeCycleListener
messageLogged in interface AgentLifeCycleListenerbuild - build that recieved this messagebuildMessage - build message
public void checkoutDirectoryRemoved(@NotNull
java.io.File checkoutDir)
AgentLifeCycleListener
checkoutDirectoryRemoved in interface AgentLifeCycleListenercheckoutDir - path of the directory. This directory may not
exist at the moment of the call.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||