Build constructor
- Input<
Artifacts> ? artifacts, - Input<
Secrets> ? availableSecrets, - Input<
List< ? images,String> > - Input<
String> ? logsBucket, - Input<
BuildOptions> ? options, - Input<
String> ? queueTtl, - Input<
List< ? secrets,Secret> > - Input<
String> ? serviceAccount, - Input<
Source> ? source, - required Input<
List< steps,BuildStep> > - Input<
Map< ? substitutions,String, String> > - Input<
List< ? tags,String> > - Input<
String> ? timeout,
Creates a new Build.
artifacts Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
availableSecrets Secrets and secret environment variables.
images A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build status is marked FAILURE.
logsBucket Cloud Storage bucket where logs should be written (see Bucket Name Requirements). Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt.
options Special options for this build.
queueTtl TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be EXPIRED. The TTL starts ticking from create_time.
secrets Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use available_secrets to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
serviceAccount IAM service account whose credentials will be used at build runtime. Must be of the format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}. ACCOUNT can be email address or uniqueId of the service account.
source The location of the source files to build.
steps The operations to be performed on the workspace.
substitutions Substitutions data for Build resource.
tags Tags for annotation of a Build. These are not docker tags.
timeout Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be TIMEOUT. timeout starts ticking from startTime. Default time is 60 minutes.
Implementation
const Build({
this.artifacts,
this.availableSecrets,
this.images,
this.logsBucket,
this.options,
this.queueTtl,
this.secrets,
this.serviceAccount,
this.source,
required this.steps,
this.substitutions,
this.tags,
this.timeout,
});