Skip to content

Commit d129b4f

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add DefaultLogsBucketBehavior to BuildOptions
Committer: @arvinddayal PiperOrigin-RevId: 515431035
1 parent b5b4571 commit d129b4f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

google/devtools/cloudbuild/v1/cloudbuild.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,17 @@ message BuildOptions {
18431843
NONE = 4;
18441844
}
18451845

1846+
// Default GCS log bucket behavior options.
1847+
enum DefaultLogsBucketBehavior {
1848+
// Unspecified.
1849+
DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0;
1850+
1851+
// Bucket is located in user-owned project in the same region as the
1852+
// build. The builder service account must have access to create and write
1853+
// to GCS buckets in the build project.
1854+
REGIONAL_USER_OWNED_BUCKET = 1;
1855+
}
1856+
18461857
// Requested hash for SourceProvenance.
18471858
repeated Hash.HashType source_provenance_hash = 1;
18481859

@@ -1916,6 +1927,10 @@ message BuildOptions {
19161927
// Using a global volume in a build with only one step is not valid as
19171928
// it is indicative of a build request with an incorrect configuration.
19181929
repeated Volume volumes = 14;
1930+
1931+
// Option to specify how default logs buckets are setup.
1932+
DefaultLogsBucketBehavior default_logs_bucket_behavior = 21
1933+
[(google.api.field_behavior) = OPTIONAL];
19191934
}
19201935

19211936
// ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by

0 commit comments

Comments
 (0)