ncloud_sourcebuild_create_project
Create a new SourceBuild project with custom build commands, environment variables, and artifact storage. Configure platform type, runtime, and Docker engine as needed.
Instructions
Create a new SourceBuild project with full configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Image tag (required if platformType=ContainerRegistry|PublicRegistry) | |
| name | Yes | Project name (alphanumeric, '_', '-', 1-80 chars) | |
| osId | No | OS ID (required if platformType=SourceBuild, from list_os) | |
| image | No | Image name (required if platformType=ContainerRegistry|PublicRegistry) | |
| branch | Yes | Branch to build from | |
| envVars | No | Build environment variables | |
| timeout | No | Build timeout in minutes (5-540, default: 5) | |
| cacheTag | No | Cache image tag | |
| cacheUse | No | Save build image after completion | |
| dockerId | No | Docker engine version ID (required if dockerUse=true, from list_docker_engines) | |
| computeId | Yes | Compute type ID (from list_compute) | |
| dockerUse | No | Include Docker engine for build | |
| runtimeId | No | Runtime type ID (required if platformType=SourceBuild, from list_runtimes) | |
| cacheImage | No | Cache image name | |
| repository | Yes | Source repository name | |
| sourceType | No | Source repository type (SourceCommit) | SourceCommit |
| artifactUse | No | Save build artifacts | |
| cacheLatest | No | Set latest tag for cache | |
| description | No | Project description | |
| artifactPath | No | Build artifact paths | |
| platformType | No | Platform type: SourceBuild | ContainerRegistry | PublicRegistry | SourceBuild |
| registryName | No | Container Registry name (required if platformType=ContainerRegistry) | |
| buildCommands | No | Build commands | |
| cacheRegistry | No | Container Registry for cache | |
| artifactBackup | No | Backup artifacts | |
| artifactBucket | No | Object Storage bucket for artifacts | |
| dockerbuildTag | No | Docker build image tag | |
| dockerbuildUse | No | Enable Docker image build | |
| linkedFileSafer | No | Enable File Safer integration | |
| artifactFilename | No | Artifact filename | |
| dockerbuildImage | No | Docker build image name | |
| preBuildCommands | No | Pre-build commands | |
| runtimeVersionId | No | Runtime version ID (required if platformType=SourceBuild, from list_runtime_versions) | |
| dockerbuildLatest | No | Set latest tag for Docker build | |
| postBuildCommands | No | Post-build commands | |
| artifactStoragePath | No | Path within bucket | |
| dockerbuildRegistry | No | Docker build target Container Registry name | |
| dockerbuildDockerfile | No | Dockerfile path | |
| linkedCloudLogAnalytics | No | Enable Cloud Log Analytics integration |