Class BuildServiceAdapter
- java.lang.Object
-
- jetbrains.buildServer.agent.runner.CommandLineBuildService
-
- jetbrains.buildServer.agent.runner.BuildServiceAdapter
-
public abstract class BuildServiceAdapter extends CommandLineBuildService
ExtendsCommandLineBuildServiceinterface. Adds some methods for quicker access toBuildRunnerContextandAgentRunningBuilddata.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description BuildServiceAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProgramCommandLinecreateProgramCommandline(String file, List<String> args)BuildAgentConfigurationgetAgentConfiguration()FilegetAgentTempDirectory()protected BuildParametersMapgetBuildParameters()FilegetBuildTempDirectory()protected FilegetCheckoutDirectory()protected Map<String,String>getConfigParameters()protected Map<String,String>getEnvironmentVariables()protected Map<String,String>getRunnerParameters()protected Map<String,String>getSystemProperties()StringgetToolPath(String toolName)Returns path to a tool with given nameprotected FilegetWorkingDirectory()-
Methods inherited from class jetbrains.buildServer.agent.runner.CommandLineBuildService
afterInitialized, afterProcessFinished, afterProcessSuccessfullyFinished, beforeProcessStarted, createExitCodeBuildProblem, getBuild, getFlowLogger, getListeners, getLogger, getRunnerContext, getRunResult, initialize, interrupt, isCommandLineLoggingEnabled, logBuildProblem, makeProgramCommandLine
-
-
-
-
Method Detail
-
getBuildParameters
@NotNull protected final BuildParametersMap getBuildParameters()
-
getCheckoutDirectory
@NotNull protected final File getCheckoutDirectory()
-
getWorkingDirectory
@NotNull protected final File getWorkingDirectory()
-
createProgramCommandline
@NotNull protected final ProgramCommandLine createProgramCommandline(@NotNull String file, @NotNull List<String> args)
-
getToolPath
@NotNull public final String getToolPath(@NotNull 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 File getBuildTempDirectory()
- Returns:
- Temp directory that will be set as temp directory for runner process
- Since:
- 6.0
-
getAgentTempDirectory
@NotNull public final 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
-
-