Class Run.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.circleci.Run.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Run.Builderbackground(String background)Sets the value ofRun.getBackground()Runbuild()Builds the configured instance.Run.Buildercommand(String command)Sets the value ofRun.getCommand()Run.Builderenvironment(String environment)Sets the value ofRun.getEnvironment()Run.Buildername(String name)Sets the value ofRun.getName()Run.BuildernoOutputTimeout(String noOutputTimeout)Sets the value ofRun.getNoOutputTimeout()Run.Buildershell(String shell)Sets the value ofRun.getShell()Run.Builderwhen(String when)Sets the value ofRun.getWhen()Run.BuilderworkingDirectory(String workingDirectory)Sets the value ofRun.getWorkingDirectory()
-
-
-
Method Detail
-
command
@Stability(Experimental) public Run.Builder command(String command)
Sets the value ofRun.getCommand()- Parameters:
command- Command to run via the shell. This parameter is required.- Returns:
this
-
background
@Stability(Experimental) public Run.Builder background(String background)
Sets the value ofRun.getBackground()- Parameters:
background- Whether this step should run in the background (default: false).- Returns:
this
-
environment
@Stability(Experimental) public Run.Builder environment(String environment)
Sets the value ofRun.getEnvironment()- Parameters:
environment- Additional environmental variables, locally scoped to command.- Returns:
this
-
name
@Stability(Experimental) public Run.Builder name(String name)
Sets the value ofRun.getName()- Parameters:
name- Title of the step to be shown in the CircleCI UI (default: full command).- Returns:
this
-
noOutputTimeout
@Stability(Experimental) public Run.Builder noOutputTimeout(String noOutputTimeout)
Sets the value ofRun.getNoOutputTimeout()- Parameters:
noOutputTimeout- Elapsed time the command can run without output such as “20m”, “1.25h”, “5s”. The default is 10 minutes.- Returns:
this
-
shell
@Stability(Experimental) public Run.Builder shell(String shell)
Sets the value ofRun.getShell()- Parameters:
shell- Shell to use for execution command.- Returns:
this
-
when
@Stability(Experimental) public Run.Builder when(String when)
Sets the value ofRun.getWhen()- Parameters:
when- Specify when to enable or disable the step.- Returns:
this
-
workingDirectory
@Stability(Experimental) public Run.Builder workingDirectory(String workingDirectory)
Sets the value ofRun.getWorkingDirectory()- Parameters:
workingDirectory- In which directory to run this step. Will be interpreted relative to the working_directory of the job). (default: .)- Returns:
this
-
build
@Stability(Experimental) public Run build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Run>- Returns:
- a new instance of
Run - Throws:
NullPointerException- if any required attribute was not provided
-
-