| Constructor and Description |
|---|
WorkerShellStep(BuildTarget buildTarget,
Optional<WorkerJobParams> cmdParams,
Optional<WorkerJobParams> bashParams,
Optional<WorkerJobParams> cmdExeParams,
WorkerProcessPoolFactory factory)
Creates new shell step that uses worker process to delegate work.
|
| Modifier and Type | Method and Description |
|---|---|
StepExecutionResult |
execute(ExecutionContext context) |
String |
getDescription(ExecutionContext context) |
protected com.google.common.collect.ImmutableMap<String,String> |
getEnvironmentVariables()
Returns the environment variables to use when expanding the job arguments that get sent to the
process.
|
String |
getShortName() |
WorkerJobParams |
getWorkerJobParamsToUse(Platform platform) |
public WorkerShellStep(BuildTarget buildTarget, Optional<WorkerJobParams> cmdParams, Optional<WorkerJobParams> bashParams, Optional<WorkerJobParams> cmdExeParams, WorkerProcessPoolFactory factory)
cmdParams - Universal, platform independent params, something that would work for both
Linux/macOS and Windows platforms.bashParams - Used in Linux/macOS environment, specifies the arguments that are passed into
bash shell.cmdExeParams - Used in Windows environment, specifies the arguments that are passed into
cmd.exe (Windows shell).public StepExecutionResult execute(ExecutionContext context) throws IOException, InterruptedException
execute in interface StepIOExceptionInterruptedExceptionpublic WorkerJobParams getWorkerJobParamsToUse(Platform platform)
protected com.google.common.collect.ImmutableMap<String,String> getEnvironmentVariables()
By default, this method returns an empty map.
public String getShortName()
getShortName in interface Steppublic final String getDescription(ExecutionContext context)
getDescription in interface Step