public class RemoteBuildAgent extends DefaultBuildAgent
onMainThreadEnd() methods to make sure that the agent
process terminates when the main thread is finished.| Constructor and Description |
|---|
RemoteBuildAgent(AgentConfiguration agentConfiguration,
RemoteAgentPluginEventHandlerImpl deferredEventsHandler,
int heartbeatIntervalSeconds) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onAgentReadyToBuild() |
protected void |
onBetweenBuilds() |
void |
onContextReceived(@NotNull CommonContext commonContext)
This method is called when the agent has just retrieved a context from queue
|
protected void |
onMainThreadEnd() |
protected void |
shutdown() |
void |
start()
Starts the build agent
|
void |
stopNicely(int statusCode)
Attempt to stop the agent and wait for the current build (if any) to stop building.
|
build, cancelBuild, compareTo, disable, enable, equals, executeWithCurrentContext, getAgentStatus, getBuilding, getDescription, getId, getName, hashCode, incrementError, isActive, isCancelling, isEnabled, isStopping, onBuildProcessingFinished, resetErrors, setContextToBuild, stop, stopNicely, waitForStoppublic RemoteBuildAgent(AgentConfiguration agentConfiguration, RemoteAgentPluginEventHandlerImpl deferredEventsHandler, int heartbeatIntervalSeconds)
public void start()
ExecutableBuildAgentstart in interface ExecutableBuildAgentstart in class DefaultBuildAgentpublic void stopNicely(int statusCode)
ExecutableBuildAgentstopNicely in interface ExecutableBuildAgentstopNicely in class DefaultBuildAgentprotected void shutdown()
shutdown in class DefaultBuildAgentprotected void onMainThreadEnd()
onMainThreadEnd in class DefaultBuildAgentpublic void onContextReceived(@NotNull
@NotNull CommonContext commonContext)
ExecutableBuildAgentonContextReceived in interface ExecutableBuildAgentonContextReceived in class DefaultBuildAgentprotected void onAgentReadyToBuild()
onAgentReadyToBuild in class DefaultBuildAgentprotected void onBetweenBuilds()
onBetweenBuilds in class DefaultBuildAgentCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.