Class SingleCommandLineBuildSessionFactoryAdapter
- java.lang.Object
-
- jetbrains.buildServer.agent.runner2.SingleCommandLineBuildSessionFactoryAdapter
-
- All Implemented Interfaces:
AgentExtension
,MultiCommandBuildSessionFactory
,TeamCityExtension
public class SingleCommandLineBuildSessionFactoryAdapter extends Object implements MultiCommandBuildSessionFactory
-
-
Constructor Summary
Constructors Constructor Description SingleCommandLineBuildSessionFactoryAdapter(CommandLineBuildServiceFactory adaptee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiCommandBuildSession
createSession(BuildRunnerContext runnerContext)
This method is called to create a build runner for a given build stepAgentBuildRunnerInfo
getBuildRunnerInfo()
-
-
-
Constructor Detail
-
SingleCommandLineBuildSessionFactoryAdapter
public SingleCommandLineBuildSessionFactoryAdapter(@NotNull CommandLineBuildServiceFactory adaptee)
-
-
Method Detail
-
createSession
@NotNull public MultiCommandBuildSession createSession(@NotNull BuildRunnerContext runnerContext) throws RunBuildException
Description copied from interface:MultiCommandBuildSessionFactory
This method is called to create a build runner for a given build step- Specified by:
createSession
in interfaceMultiCommandBuildSessionFactory
- Parameters:
runnerContext
- build step to execute runner- Returns:
- build runner session that describes processes to run
- Throws:
RunBuildException
- if runner failed to start or failed an error
-
getBuildRunnerInfo
@NotNull public AgentBuildRunnerInfo getBuildRunnerInfo()
- Specified by:
getBuildRunnerInfo
in interfaceMultiCommandBuildSessionFactory
- Returns:
- runner description and compatibility info
-
-