| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JobMatrix |
build()
Builds the configured instance.
|
JobMatrix.Builder |
domain(Map<String,? extends List<String>> domain)
Sets the value of
JobMatrix.getDomain() |
JobMatrix.Builder |
exclude(List<? extends Map<String,String>> exclude)
Sets the value of
JobMatrix.getExclude() |
JobMatrix.Builder |
include(List<? extends Map<String,String>> include)
Sets the value of
JobMatrix.getInclude() |
@Stability(value=Experimental) public JobMatrix.Builder domain(Map<String,? extends List<String>> domain)
JobMatrix.getDomain()domain - Each option you define in the matrix has a key and value.
The keys you
define become properties in the matrix context and you can reference the
property in other areas of your workflow file. For example, if you define
the key os that contains an array of operating systems, you can use the
matrix.os property as the value of the runs-on keyword to create a job
for each operating system.this@Stability(value=Experimental) public JobMatrix.Builder exclude(List<? extends Map<String,String>> exclude)
JobMatrix.getExclude()exclude - You can remove a specific configurations defined in the build matrix using the exclude option.
Using exclude removes a job defined by the
build matrix.this@Stability(value=Experimental) public JobMatrix.Builder include(List<? extends Map<String,String>> include)
JobMatrix.getInclude()include - You can add additional configuration options to a build matrix job that already exists.
For example, if you want to use a specific version of npm
when the job that uses windows-latest and version 8 of node runs, you can
use include to specify that additional option.this@Stability(value=Experimental) public JobMatrix build()
build in interface software.amazon.jsii.Builder<JobMatrix>JobMatrixNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.