| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JobStep |
build()
Builds the configured instance.
|
JobStep.Builder |
continueOnError(Boolean continueOnError)
Sets the value of
JobStep.getContinueOnError() |
JobStep.Builder |
env(Map<String,String> env)
Sets the value of
JobStep.getEnv() |
JobStep.Builder |
id(String id)
Sets the value of
JobStep.getId() |
JobStep.Builder |
ifValue(String ifValue)
Sets the value of
JobStep.getIfValue() |
JobStep.Builder |
name(String name)
Sets the value of
JobStep.getName() |
JobStep.Builder |
run(String run)
Sets the value of
JobStep.getRun() |
JobStep.Builder |
timeoutMinutes(Number timeoutMinutes)
Sets the value of
JobStep.getTimeoutMinutes() |
JobStep.Builder |
uses(String uses)
Sets the value of
JobStep.getUses() |
JobStep.Builder |
with(Map<String,? extends Object> with)
Sets the value of
JobStep.getWith() |
@Stability(value=Experimental) public JobStep.Builder continueOnError(Boolean continueOnError)
JobStep.getContinueOnError()continueOnError - Prevents a job from failing when a step fails.
Set to true to allow a job
to pass when this step fails.this@Stability(value=Experimental) public JobStep.Builder env(Map<String,String> env)
JobStep.getEnv()env - Sets environment variables for steps to use in the runner environment.
You can also set environment variables for the entire workflow or a job.this@Stability(value=Experimental) public JobStep.Builder id(String id)
JobStep.getId()id - A unique identifier for the step.
You can use the id to reference the
step in contexts.this@Stability(value=Experimental) public JobStep.Builder ifValue(String ifValue)
JobStep.getIfValue()ifValue - You can use the if conditional to prevent a job from running unless a condition is met.
You can use any supported context and expression to
create a conditional.this@Stability(value=Experimental) public JobStep.Builder name(String name)
JobStep.getName()name - A name for your step to display on GitHub.this@Stability(value=Experimental) public JobStep.Builder run(String run)
JobStep.getRun()run - Runs command-line programs using the operating system's shell.
If you do
not provide a name, the step name will default to the text specified in
the run command.this@Stability(value=Experimental) public JobStep.Builder timeoutMinutes(Number timeoutMinutes)
JobStep.getTimeoutMinutes()timeoutMinutes - The maximum number of minutes to run the step before killing the process.this@Stability(value=Experimental) public JobStep.Builder uses(String uses)
JobStep.getUses()uses - Selects an action to run as part of a step in your job.
An action is a
reusable unit of code. You can use an action defined in the same
repository as the workflow, a public repository, or in a published Docker
container image.this@Stability(value=Experimental) public JobStep.Builder with(Map<String,? extends Object> with)
JobStep.getWith()with - A map of the input parameters defined by the action.
Each input parameter
is a key/value pair. Input parameters are set as environment variables.
The variable is prefixed with INPUT_ and converted to upper case.this@Stability(value=Experimental) public JobStep build()
build in interface software.amazon.jsii.Builder<JobStep>JobStepNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.