Please vote on this issue by adding a đź‘Ť reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Description
bitbucket_cloud_config are now available for google_cloudbuild_trigger resource in version 5.34.0
For normal trigger you can configure google_cloudbuildv2_connection with bitbucket_cloud_config, then google_cloudbuildv2_repository with parent_connection to google_cloudbuildv2_connection , and then
google_cloudbuild_trigger with repository_event_config connected to google_cloudbuildv2_repository. all works perfect.
But if you want to configure google_cloudbuild_trigger scheduled by pubsub. you need to configure source_to_build block in google_cloudbuild_trigger.
source_to_build accept only ["UNKNOWN" "CLOUD_SOURCE_REPOSITORIES" "GITHUB" "BITBUCKET_SERVER"] values , nothing about bitbucket CLOUD.
I created pubsub cloud built trigger connected to bitbucket cloud repo in GUI. And then I tried to import it to terraform and got this error:
Planning failed. Terraform encountered an error while generating this plan.
â•·
│ Error: expected source_to_build.0.repo_type to be one of ["UNKNOWN" "CLOUD_SOURCE_REPOSITORIES" "GITHUB" "BITBUCKET_SERVER"], got
│
│ with google_cloudbuild_trigger.default,
│ on generated.tf line 48:
│ (source code not available)
Community Note
Description
bitbucket_cloud_config
are now available forgoogle_cloudbuild_trigger
resource in version 5.34.0For normal trigger you can configure
google_cloudbuildv2_connection
withbitbucket_cloud_config
, thengoogle_cloudbuildv2_repository
with parent_connection togoogle_cloudbuildv2_connection
, and thengoogle_cloudbuild_trigger
with repository_event_config connected togoogle_cloudbuildv2_repository
. all works perfect.But if you want to configure
google_cloudbuild_trigger
scheduled by pubsub. you need to configuresource_to_build
block ingoogle_cloudbuild_trigger
.source_to_build
accept only ["UNKNOWN" "CLOUD_SOURCE_REPOSITORIES" "GITHUB" "BITBUCKET_SERVER"] values , nothing about bitbucket CLOUD.I created pubsub cloud built trigger connected to bitbucket cloud repo in GUI. And then I tried to import it to terraform and got this error:
New or Affected Resource(s)
Potential Terraform Configuration
References
No response
b/359238028