Class JenkinsAction.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.JenkinsAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JenkinsAction>
- Enclosing class:
- JenkinsAction
@Stability(Stable)
public static final class JenkinsAction.Builder
extends Object
implements software.amazon.jsii.Builder<JenkinsAction>
A fluent builder for
JenkinsAction
.-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) The physical, human-readable name of the Action.build()
static JenkinsAction.Builder
create()
The source to use as input for this build.jenkinsProvider
(IJenkinsProvider jenkinsProvider) The Jenkins Provider for this Action.projectName
(String projectName) The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action.The runOrder property for this Action.type
(JenkinsActionType type) The type of the Action - Build, or Test.variablesNamespace
(String variablesNamespace) The name of the namespace to use for variables emitted by this action.
-
Method Details
-
create
- Returns:
- a new instance of
JenkinsAction.Builder
.
-
actionName
The physical, human-readable name of the Action.Note that Action names must be unique within a single Stage.
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required.- Returns:
this
-
runOrder
The runOrder property for this Action.RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
- Parameters:
runOrder
- The runOrder property for this Action. This parameter is required.- Returns:
this
- See Also:
-
variablesNamespace
The name of the namespace to use for variables emitted by this action.Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action. This parameter is required.- Returns:
this
-
jenkinsProvider
The Jenkins Provider for this Action.- Parameters:
jenkinsProvider
- The Jenkins Provider for this Action. This parameter is required.- Returns:
this
-
projectName
The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action.Example:
"MyJob";
- Parameters:
projectName
- The name of the project (sometimes also called job, or task) on your Jenkins installation that will be invoked by this Action. This parameter is required.- Returns:
this
-
type
The type of the Action - Build, or Test.- Parameters:
type
- The type of the Action - Build, or Test. This parameter is required.- Returns:
this
-
inputs
The source to use as input for this build.- Parameters:
inputs
- The source to use as input for this build. This parameter is required.- Returns:
this
-
outputs
- Parameters:
outputs
- This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JenkinsAction>
- Returns:
- a newly built instance of
JenkinsAction
.
-