jetbrains.buildServer.agent.runner
Class BuildServiceAdapter
java.lang.Object
jetbrains.buildServer.agent.runner.CommandLineBuildService
jetbrains.buildServer.agent.runner.BuildServiceAdapter
public abstract class BuildServiceAdapter
- extends CommandLineBuildService
Extends CommandLineBuildService interface.
Adds some methods for quicker access to BuildRunnerContext
and AgentRunningBuild data.
- Since:
- 6.0
| Methods inherited from class jetbrains.buildServer.agent.runner.CommandLineBuildService |
afterInitialized, afterProcessFinished, afterProcessSuccessfullyFinished, beforeProcessStarted, getBuild, getListeners, getLogger, getRunnerContext, getRunResult, initialize, interrupt, isCommandLineLoggingEnabled, makeProgramCommandLine |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildServiceAdapter
public BuildServiceAdapter()
getBuildParameters
@NotNull
protected final BuildParametersMap getBuildParameters()
getConfigParameters
@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getConfigParameters()
getSystemProperties
@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
getEnvironmentVariables
@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
getRunnerParameters
@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getRunnerParameters()
getCheckoutDirectory
@NotNull
protected final java.io.File getCheckoutDirectory()
getWorkingDirectory
@NotNull
protected final java.io.File getWorkingDirectory()
createProgramCommandline
@NotNull
protected final ProgramCommandLine createProgramCommandline(@NotNull
java.lang.String file,
@NotNull
java.util.List<java.lang.String> args)
getToolPath
@NotNull
public final java.lang.String getToolPath(@NotNull
java.lang.String toolName)
throws ToolCannotBeFoundException
- Returns path to a tool with given name
- Parameters:
toolName - name of the tool
- Returns:
- path to a tool on the filesystem
- Throws:
ToolCannotBeFoundException - if path to a tool can't be located- Since:
- 6.0
getBuildTempDirectory
@NotNull
public final java.io.File getBuildTempDirectory()
- Returns:
- Temp directory that will be set as temp directory for runner process
- Since:
- 6.0
getAgentTempDirectory
@NotNull
public final java.io.File getAgentTempDirectory()
- Returns:
- temp directory for runner specific files
- Since:
- 6.0
getAgentConfiguration
@NotNull
public final BuildAgentConfiguration getAgentConfiguration()
- Returns:
- build agent configuration
- Since:
- 6.0