Package io.github.cdklabs.projen.gitlab
Class GitlabConfiguration.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.GitlabConfiguration.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitlabConfiguration>
- Enclosing class:
- GitlabConfiguration
@Stability(Experimental) public static final class GitlabConfiguration.Builder extends Object implements software.amazon.jsii.Builder<GitlabConfiguration>
(experimental) A fluent builder forGitlabConfiguration.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GitlabConfigurationbuild()static GitlabConfiguration.Buildercreate(Project project)GitlabConfiguration.BuilderdefaultValue(Default defaultValue)(experimental) Default settings for the CI Configuration.GitlabConfiguration.Builderjobs(Map<String,? extends Job> jobs)(experimental) An initial set of jobs to add to the configuration.GitlabConfiguration.Builderpages(Job pages)(experimental) A special job used to upload static sites to Gitlab pages.GitlabConfiguration.Builderstages(List<String> stages)(experimental) Groups jobs into stages.GitlabConfiguration.Buildervariables(Map<String,? extends Object> variables)(experimental) Global variables that are passed to jobs.GitlabConfiguration.Builderworkflow(Workflow workflow)(experimental) Used to control pipeline behavior.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static GitlabConfiguration.Builder create(Project project)
- Parameters:
project- This parameter is required.- Returns:
- a new instance of
GitlabConfiguration.Builder.
-
defaultValue
@Stability(Experimental) public GitlabConfiguration.Builder defaultValue(Default defaultValue)
(experimental) 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.
- Parameters:
defaultValue- Default settings for the CI Configuration. This parameter is required.- Returns:
this
-
jobs
@Stability(Experimental) public GitlabConfiguration.Builder jobs(Map<String,? extends Job> jobs)
(experimental) An initial set of jobs to add to the configuration.- Parameters:
jobs- An initial set of jobs to add to the configuration. This parameter is required.- Returns:
this
-
pages
@Stability(Experimental) public GitlabConfiguration.Builder pages(Job pages)
(experimental) A special job used to upload static sites to Gitlab pages.Requires a
public/directory withartifacts.pathpointing to it.- Parameters:
pages- A special job used to upload static sites to Gitlab pages. This parameter is required.- Returns:
this
-
stages
@Stability(Experimental) public GitlabConfiguration.Builder stages(List<String> stages)
(experimental) 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'].
- Parameters:
stages- Groups jobs into stages. This parameter is required.- Returns:
this
-
variables
@Stability(Experimental) public GitlabConfiguration.Builder variables(Map<String,? extends Object> variables)
(experimental) Global variables that are passed to jobs.If the job already has that variable defined, the job-level variable takes precedence.
- Parameters:
variables- Global variables that are passed to jobs. This parameter is required.- Returns:
this
-
workflow
@Stability(Experimental) public GitlabConfiguration.Builder workflow(Workflow workflow)
(experimental) Used to control pipeline behavior.- Parameters:
workflow- Used to control pipeline behavior. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public GitlabConfiguration build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitlabConfiguration>- Returns:
- a newly built instance of
GitlabConfiguration.
-
-