Package io.github.cdklabs.projen.gitlab
Class Trigger.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Trigger.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trigger.Builderbranch(String branch)Sets the value ofTrigger.getBranch()Triggerbuild()Builds the configured instance.Trigger.Builderinclude(List<? extends TriggerInclude> include)Sets the value ofTrigger.getInclude()Trigger.Builderproject(String project)Sets the value ofTrigger.getProject()Trigger.Builderstrategy(Strategy strategy)Sets the value ofTrigger.getStrategy()
-
-
-
Method Detail
-
branch
@Stability(Experimental) public Trigger.Builder branch(String branch)
Sets the value ofTrigger.getBranch()- Parameters:
branch- The branch name that a downstream pipeline will use.- Returns:
this
-
include
@Stability(Experimental) public Trigger.Builder include(List<? extends TriggerInclude> include)
Sets the value ofTrigger.getInclude()- Parameters:
include- A list of local files or artifacts from other jobs to define the pipeline.- Returns:
this
-
project
@Stability(Experimental) public Trigger.Builder project(String project)
Sets the value ofTrigger.getProject()- Parameters:
project- Path to the project, e.g.group/project, orgroup/sub-group/project.- Returns:
this
-
strategy
@Stability(Experimental) public Trigger.Builder strategy(Strategy strategy)
Sets the value ofTrigger.getStrategy()- Parameters:
strategy- You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend.- Returns:
this
-
build
@Stability(Experimental) public Trigger build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Trigger>- Returns:
- a new instance of
Trigger - Throws:
NullPointerException- if any required attribute was not provided
-
-