Interface ICodeCommitSourceProps
Construction properties for CodeCommitSource
.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICodeCommitSourceProps : ISourceProps
Syntax (vb)
Public Interface ICodeCommitSourceProps
Inherits ISourceProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CodeCommit;
Repository repo;
Bucket bucket;
var project = new Project(this, "MyProject", new ProjectProps {
SecondarySources = new [] { Source.CodeCommit(new CodeCommitSourceProps {
Identifier = "source2",
Repository = repo
}) },
SecondaryArtifacts = new [] { Artifacts.S3(new S3ArtifactsProps {
Identifier = "artifact2",
Bucket = bucket,
Path = "some/path",
Name = "file.zip"
}) }
});
Synopsis
Properties
BranchOrRef | The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. |
CloneDepth | The depth of history to download. |
FetchSubmodules | Whether to fetch submodules while cloning git repo. |
Repository |
Properties
BranchOrRef
The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build.
virtual string BranchOrRef { get; }
Property Value
System.String
Remarks
Default: the default branch's HEAD commit ID is used
Examples
"mybranch";
CloneDepth
The depth of history to download.
virtual Nullable<double> CloneDepth { get; }
Property Value
System.Nullable<System.Double>
Remarks
Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build of the project.
FetchSubmodules
Whether to fetch submodules while cloning git repo.
virtual Nullable<bool> FetchSubmodules { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false