Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require 'trigger_template' since it conflicts with 'github' in beta. #2717

Merged
merged 3 commits into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/ansible
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
4 changes: 3 additions & 1 deletion products/cloudbuild/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ objects:
Branch and tag names in trigger templates are interpreted as regular
expressions. Any branch or tag change that matches that regular
expression will trigger a build.
required: true
properties:
- !ruby/object:Api::Type::String
name: 'projectId'
Expand Down Expand Up @@ -165,6 +164,9 @@ objects:
description: |
Describes the configuration of a trigger that creates a build whenever a GitHub event is received.
min_version: beta
exactly_one_of:
- trigger_template
- github
properties:
- !ruby/object:Api::Type::String
name: 'owner'
Expand Down
8 changes: 8 additions & 0 deletions products/cloudbuild/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ overrides: !ruby/object:Overrides::ResourceOverrides
default_from_api: true
build.steps: !ruby/object:Overrides::Terraform::PropertyOverride
name: 'step'
triggerTemplate: !ruby/object:Overrides::Terraform::PropertyOverride
description: |
{{description}}
One of `trigger_template` or `github` must be provided.
github: !ruby/object:Overrides::Terraform::PropertyOverride
description: |
{{description}}
One of `trigger_template` or `github` must be provided.
triggerTemplate.projectId: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
custom_code: !ruby/object:Provider::Terraform::CustomCode
Expand Down