@Stability(value=Experimental) public static final class JobStrategy.Builder extends Object implements software.amazon.jsii.Builder<JobStrategy>
JobStrategy| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JobStrategy |
build()
Builds the configured instance.
|
JobStrategy.Builder |
failFast(Boolean failFast)
Sets the value of
JobStrategy.getFailFast() |
JobStrategy.Builder |
matrix(JobMatrix matrix)
Sets the value of
JobStrategy.getMatrix() |
JobStrategy.Builder |
maxParallel(Number maxParallel)
Sets the value of
JobStrategy.getMaxParallel() |
@Stability(value=Experimental) public JobStrategy.Builder failFast(Boolean failFast)
JobStrategy.getFailFast()failFast - When set to true, GitHub cancels all in-progress jobs if any matrix job fails.
Default: truethis@Stability(value=Experimental) public JobStrategy.Builder matrix(JobMatrix matrix)
JobStrategy.getMatrix()matrix - You can define a matrix of different job configurations.
A matrix allows
you to create multiple jobs by performing variable substitution in a
single job definition. For example, you can use a matrix to create jobs
for more than one supported version of a programming language, operating
system, or tool. A matrix reuses the job's configuration and creates a
job for each matrix you configure.
A job matrix can generate a maximum of 256 jobs per workflow run. This limit also applies to self-hosted runners.
this@Stability(value=Experimental) public JobStrategy.Builder maxParallel(Number maxParallel)
JobStrategy.getMaxParallel()maxParallel - The maximum number of jobs that can run simultaneously when using a matrix job strategy.
By default, GitHub will maximize the number of jobs
run in parallel depending on the available runners on GitHub-hosted
virtual machines.this@Stability(value=Experimental) public JobStrategy build()
build in interface software.amazon.jsii.Builder<JobStrategy>JobStrategyNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.