Class GitConfiguration
Git configuration for trigger.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodePipeline
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GitConfiguration : Object, IGitConfiguration
Syntax (vb)
Public Class GitConfiguration
Inherits Object
Implements IGitConfiguration
Remarks
ExampleMetadata: infused
Examples
CodeStarConnectionsSourceAction sourceAction;
CodeBuildAction buildAction;
new Pipeline(this, "Pipeline", new PipelineProps {
PipelineType = PipelineType.V2,
Stages = new [] { new StageProps {
StageName = "Source",
Actions = new [] { sourceAction }
}, new StageProps {
StageName = "Build",
Actions = new [] { buildAction }
} },
Triggers = new [] { new TriggerProps {
ProviderType = ProviderType.CODE_STAR_SOURCE_CONNECTION,
GitConfiguration = new GitConfiguration {
SourceAction = sourceAction,
PushFilter = new [] { new GitPushFilter {
TagsExcludes = new [] { "exclude1", "exclude2" },
TagsIncludes = new [] { "include*" }
} }
}
} }
});
Synopsis
Constructors
GitConfiguration() |
Properties
PushFilter | The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. |
SourceAction | The pipeline source action where the trigger configuration, such as Git tags. |
Constructors
GitConfiguration()
public GitConfiguration()
Properties
PushFilter
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
public IGitPushFilter[] PushFilter { get; set; }
Property Value
Remarks
Git tags is the only supported event type.
The length must be less than or equal to 3.
Default: - no filter.
SourceAction
The pipeline source action where the trigger configuration, such as Git tags.
public IAction SourceAction { get; set; }
Property Value
Remarks
The trigger configuration will start the pipeline upon the specified change only. You can only specify one trigger configuration per source action.
Since the provider for sourceAction
must be CodeStarSourceConnection
, you can use
CodeStarConnectionsSourceAction
construct in aws-codepipeline-actions
module.