Class Job.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.circleci.Job.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
identifier
@Stability(Experimental) public Job.Builder identifier(String identifier)
Sets the value ofJob.getIdentifier()- Parameters:
identifier- name of dynamic key *. This parameter is required.- Returns:
this
-
docker
@Stability(Experimental) public Job.Builder docker(List<? extends Docker> docker)
Sets the value ofJob.getDocker()- Parameters:
docker- the value to be set.- Returns:
this
-
environment
@Stability(Experimental) public Job.Builder environment(Map<String,? extends Object> environment)
Sets the value ofJob.getEnvironment()- Parameters:
environment- A map of environment variable names and values.- Returns:
this
-
machine
@Stability(Experimental) public Job.Builder machine(Machine machine)
Sets the value ofJob.getMachine()- Parameters:
machine- the value to be set.- Returns:
this
-
macos
@Stability(Experimental) public Job.Builder macos(Macos macos)
Sets the value ofJob.getMacos()- Parameters:
macos- the value to be set.- Returns:
this
-
parallelism
@Stability(Experimental) public Job.Builder parallelism(Number parallelism)
Sets the value ofJob.getParallelism()- Parameters:
parallelism- Number of parallel instances of this job to run (default: 1).- Returns:
this
-
parameters
@Stability(Experimental) public Job.Builder parameters(Map<String,? extends PipelineParameter> parameters)
Sets the value ofJob.getParameters()- Parameters:
parameters- Parameters for making a job explicitly configurable in a workflow.- Returns:
this
-
resourceClass
@Stability(Experimental) public Job.Builder resourceClass(String resourceClass)
Sets the value ofJob.getResourceClass()- Parameters:
resourceClass-ResourceClass.- Returns:
this
-
shell
@Stability(Experimental) public Job.Builder shell(String shell)
Sets the value ofJob.getShell()- Parameters:
shell- Shell to use for execution command in all steps. Can be overridden by shell in each step- Returns:
this
-
steps
@Stability(Experimental) public Job.Builder steps(List<? extends Object> steps)
Sets the value ofJob.getSteps()- Parameters:
steps- no type support here, for syntax {@see https://circleci.com/docs/2.0/configuration-reference/#steps}.- Returns:
this
-
workingDirectory
@Stability(Experimental) public Job.Builder workingDirectory(String workingDirectory)
Sets the value ofJob.getWorkingDirectory()- Parameters:
workingDirectory- In which directory to run the steps. Will be interpreted as an absolute path. Default:~/project- Returns:
this
-
build
@Stability(Experimental) public Job build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Job>- Returns:
- a new instance of
Job - Throws:
NullPointerException- if any required attribute was not provided
-
-