forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds field bitbucket_server_config to Trigger.git_file_source and Tri…
…gger.source_to_build, supporting manual, pub/sub and webhook triggers. (GoogleCloudPlatform#8544) Also fixes TestAccCloudBuildTrigger_basic_bitbucket test. Co-authored-by: Mario Machado <[email protected]>
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mmv1/templates/terraform/examples/cloudbuild_trigger_manual_bitbucket_server.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "google_cloudbuild_trigger" "<%= ctx[:primary_resource_id] %>" { | ||
name = "terraform-manual-bbs-trigger" | ||
|
||
source_to_build { | ||
uri = "https://bbs.com/scm/stag/test-repo.git" | ||
ref = "refs/heads/main" | ||
repo_type = "BITBUCKET_SERVER" | ||
bitbucket_server_config = "projects/myProject/locations/global/bitbucketServerConfigs/configID" | ||
} | ||
|
||
git_file_source { | ||
path = "cloudbuild.yaml" | ||
uri = "https://bbs.com/scm/stag/test-repo.git" | ||
revision = "refs/heads/main" | ||
repo_type = "BITBUCKET_SERVER" | ||
bitbucket_server_config = "projects/myProject/locations/global/bitbucketServerConfigs/configID" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters