GitHubEnterpriseSourceProps Struct
Construction properties for GitHubEnterpriseSource.
Example
new codebuild.Project(this, 'Project', {
source: codebuild.Source.gitHubEnterprise({
httpsCloneUrl: 'https://my-github-enterprise.com/owner/repo',
}),
// Enable Docker AND custom caching
cache: codebuild.Cache.local(codebuild.LocalCacheMode.DOCKER_LAYER, codebuild.LocalCacheMode.CUSTOM),
// BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can
// also come from 'buildspec.yml' in your source.
buildSpec: codebuild.BuildSpec.fromObject({
version: '0.2',
phases: {
build: {
commands: ['...'],
},
},
cache: {
paths: [
// The '**/*' is required to indicate all files in this directory
'/root/cachedir/**/*',
],
},
}),
});
Properties
Default: the default branch's HEAD commit ID is used
example
'mybranch'
buildStatusContextstringbuild_status_contextstrbuildStatusContextStringBuildStatusContextstringBuildStatusContext*string#Default: "AWS CodeBuild
Can use built-in CodeBuild variables, like $AWS_REGION.
example
"My build #$CODEBUILD_BUILD_NUMBER"
buildStatusUrlstringbuild_status_urlstrbuildStatusUrlStringBuildStatusUrlstringBuildStatusUrl*string#Default: link to the AWS Console for CodeBuild to a particular build execution
Can use built-in CodeBuild variables, like $AWS_REGION.
example
"$CODEBUILD_PUBLIC_BUILD_URL"
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.
fetchSubmodulesbooleanfetch_submodulesboolfetchSubmodulesBooleanFetchSubmodulesboolFetchSubmodules*bool= false#httpsCloneUrlstringhttps_clone_urlstrhttpsCloneUrlStringHttpsCloneUrlstringHttpsCloneUrl*stringrequired#This property is required on secondary sources.
ignoreSslErrorsbooleanignore_ssl_errorsboolignoreSslErrorsBooleanIgnoreSslErrorsboolIgnoreSslErrors*bool= false#reportBuildStatusbooleanreport_build_statusboolreportBuildStatusBooleanReportBuildStatusboolReportBuildStatus*bool= true#Default: true if any webhookFilters were provided, false otherwise
webhookFiltersFilterGroup[]webhook_filterstyping.List[FilterGroup]webhookFiltersList<FilterGroup>WebhookFiltersFilterGroup[]WebhookFilters*[]FilterGroup#Default: every push and every Pull Request (create or update) triggers a build
A build is triggered if any of the provided filter groups match. Only valid if webhook was not provided as false.
webhookTriggersBatchBuildbooleanwebhook_triggers_batch_buildboolwebhookTriggersBatchBuildBooleanWebhookTriggersBatchBuildboolWebhookTriggersBatchBuild*bool= false#Enabling this will enable batch builds on the CodeBuild project.