BuildCloudbuildV1 class
Starts a build with the specified configuration. This method returns a long-running Operation, which includes the build ID. Pass the build ID to GetBuild to determine the build status (such as SUCCESS or FAILURE).
Auto-naming is currently not supported for this resource.
Note - this resource's API doesn't support deletion. When deleted, the resource will persist
on Google Cloud even though it will be deleted from Pulumi state.
Constructors
- BuildCloudbuildV1(String name, {BuildArgs? args, CustomResourceOptions? options})
-
Creates a new BuildCloudbuildV1.
nameThe Pulumi resource name.argsArguments used to configure this BuildCloudbuildV1. The set of arguments for Build.optionsResource options controlling this resource's behavior.
Properties
-
approval
↔ Output<
BuildApprovalResponse> -
Describes this build's approval configuration, status, and result.
latefinal
-
artifacts
↔ Output<
ArtifactsResponse> -
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
latefinal
-
availableSecrets
↔ Output<
SecretsResponse> -
Secrets and secret environment variables.
latefinal
-
buildTriggerId
↔ Output<
String> -
The ID of the
BuildTriggerthat triggered this build, if it was triggered automatically.latefinal -
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createTime
↔ Output<
String> -
Time at which the request to create the build was received.
latefinal
-
failureInfo
↔ Output<
FailureInfoResponse> -
Contains information about the build when status=FAILURE.
latefinal
-
finishTime
↔ Output<
String> -
Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
images
↔ Output<
List< String> > -
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
Buildresource's results field. If any of the images fail to be pushed, the build status is markedFAILURE.latefinal - isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
location
↔ Output<
String> -
latefinal
-
logsBucket
↔ Output<
String> -
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.latefinal -
logUrl
↔ Output<
String> -
URL to logs for this build in Google Cloud Console.
latefinal
-
name
↔ Output<
String> -
The 'Build' name with format:
projects/{project}/locations/{location}/builds/{build}, where {build} is a unique identifier generated by the service.latefinal -
options
↔ Output<
BuildOptionsResponse> -
Special options for this build.
latefinal
-
project
↔ Output<
String> -
latefinal
-
projectId
↔ Output<
String> -
Required. ID of the project.
latefinal
-
queueTtl
↔ Output<
String> -
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.latefinal -
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
results
↔ Output<
ResultsResponse> -
Results of the build.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secrets
↔ Output<
List< Map< >String, dynamic> > -
Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use
available_secretsto configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secretslatefinal -
serviceAccount
↔ Output<
String> -
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.latefinal -
source
↔ Output<
SourceResponse> -
The location of the source files to build.
latefinal
-
sourceProvenance
↔ Output<
SourceProvenanceResponse> -
A permanent fixed identifier for source.
latefinal
-
startTime
↔ Output<
String> -
Time at which execution of the build was started.
latefinal
-
status
↔ Output<
String> -
Status of the build.
latefinal
-
statusDetail
↔ Output<
String> -
Customer-readable message about the current status.
latefinal
-
steps
↔ Output<
List< Map< >String, dynamic> > -
The operations to be performed on the workspace.
latefinal
-
substitutions
↔ Output<
Map< String, String> > -
Substitutions data for
Buildresource.latefinal -
Tags for annotation of a
Build. These are not docker tags.latefinal -
timeout
↔ Output<
String> -
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.timeoutstarts ticking fromstartTime. Default time is 60 minutes.latefinal -
timing
↔ Output<
Map< String, String> > -
Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
-
warnings
↔ Output<
List< Map< >String, dynamic> > -
Non-fatal problems encountered during the execution of the build.
latefinal
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited