Package io.github.cdklabs.projen.gitlab
Class Include.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Include.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Includebuild()Builds the configured instance.Include.Builderfile(List<String> file)Sets the value ofInclude.getFile()Include.Builderlocal(String local)Sets the value ofInclude.getLocal()Include.Builderproject(String project)Sets the value ofInclude.getProject()Include.Builderref(String ref)Sets the value ofInclude.getRef()Include.Builderremote(String remote)Sets the value ofInclude.getRemote()Include.Builderrules(List<? extends IncludeRule> rules)Sets the value ofInclude.getRules()Include.Buildertemplate(String template)Sets the value ofInclude.getTemplate()
-
-
-
Method Detail
-
file
@Stability(Experimental) public Include.Builder file(List<String> file)
Sets the value ofInclude.getFile()- Parameters:
file- Files from another private project on the same GitLab instance. You can usefilein combination withprojectonly.- Returns:
this
-
local
@Stability(Experimental) public Include.Builder local(String local)
Sets the value ofInclude.getLocal()- Parameters:
local- Relative path from local repository root (/) to theyaml/ymlfile template. The file must be on the same branch, and does not work across git submodules.- Returns:
this
-
project
@Stability(Experimental) public Include.Builder project(String project)
Sets the value ofInclude.getProject()- Parameters:
project- Path to the project, e.g.group/project, orgroup/sub-group/project.- Returns:
this
-
ref
@Stability(Experimental) public Include.Builder ref(String ref)
Sets the value ofInclude.getRef()- Parameters:
ref- Branch/Tag/Commit-hash for the target project.- Returns:
this
-
remote
@Stability(Experimental) public Include.Builder remote(String remote)
Sets the value ofInclude.getRemote()- Parameters:
remote- URL to ayaml/ymltemplate file using HTTP/HTTPS.- Returns:
this
-
rules
@Stability(Experimental) public Include.Builder rules(List<? extends IncludeRule> rules)
Sets the value ofInclude.getRules()- Parameters:
rules- Rules allows for an array of individual rule objects to be evaluated in order, until one matches and dynamically provides attributes to the job.- Returns:
this
-
template
@Stability(Experimental) public Include.Builder template(String template)
Sets the value ofInclude.getTemplate()- Parameters:
template- Use a.gitlab-ci.ymltemplate as a base, e.g.Nodejs.gitlab-ci.yml.- Returns:
this
-
build
@Stability(Experimental) public Include build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Include>- Returns:
- a new instance of
Include - Throws:
NullPointerException- if any required attribute was not provided
-
-