Package io.github.cdklabs.projen.gitlab
Class CiConfigurationOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.CiConfigurationOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CiConfigurationOptions>
- Enclosing interface:
- CiConfigurationOptions
@Stability(Experimental) public static final class CiConfigurationOptions.Builder extends Object implements software.amazon.jsii.Builder<CiConfigurationOptions>
A builder forCiConfigurationOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CiConfigurationOptionsbuild()Builds the configured instance.CiConfigurationOptions.BuilderdefaultValue(Default defaultValue)Sets the value ofCiConfigurationOptions.getDefaultValue()CiConfigurationOptions.Builderjobs(Map<String,? extends Job> jobs)Sets the value ofCiConfigurationOptions.getJobs()CiConfigurationOptions.Builderpages(Job pages)Sets the value ofCiConfigurationOptions.getPages()CiConfigurationOptions.Builderstages(List<String> stages)Sets the value ofCiConfigurationOptions.getStages()CiConfigurationOptions.Buildervariables(Map<String,? extends Object> variables)Sets the value ofCiConfigurationOptions.getVariables()CiConfigurationOptions.Builderworkflow(Workflow workflow)Sets the value ofCiConfigurationOptions.getWorkflow()
-
-
-
Method Detail
-
defaultValue
@Stability(Experimental) public CiConfigurationOptions.Builder defaultValue(Default defaultValue)
Sets the value ofCiConfigurationOptions.getDefaultValue()- Parameters:
defaultValue- Default settings for the CI Configuration. Jobs that do not define one or more of the listed keywords use the value defined in the default section.- Returns:
this
-
jobs
@Stability(Experimental) public CiConfigurationOptions.Builder jobs(Map<String,? extends Job> jobs)
Sets the value ofCiConfigurationOptions.getJobs()- Parameters:
jobs- An initial set of jobs to add to the configuration.- Returns:
this
-
pages
@Stability(Experimental) public CiConfigurationOptions.Builder pages(Job pages)
Sets the value ofCiConfigurationOptions.getPages()- Parameters:
pages- A special job used to upload static sites to Gitlab pages. Requires apublic/directory withartifacts.pathpointing to it.- Returns:
this
-
stages
@Stability(Experimental) public CiConfigurationOptions.Builder stages(List<String> stages)
Sets the value ofCiConfigurationOptions.getStages()- Parameters:
stages- Groups jobs into stages. All jobs in one stage must complete before next stage is executed. If no stages are specified. Defaults to ['build', 'test', 'deploy'].- Returns:
this
-
variables
@Stability(Experimental) public CiConfigurationOptions.Builder variables(Map<String,? extends Object> variables)
Sets the value ofCiConfigurationOptions.getVariables()- Parameters:
variables- Global variables that are passed to jobs. If the job already has that variable defined, the job-level variable takes precedence.- Returns:
this
-
workflow
@Stability(Experimental) public CiConfigurationOptions.Builder workflow(Workflow workflow)
Sets the value ofCiConfigurationOptions.getWorkflow()- Parameters:
workflow- Used to control pipeline behavior.- Returns:
this
-
build
@Stability(Experimental) public CiConfigurationOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CiConfigurationOptions>- Returns:
- a new instance of
CiConfigurationOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-