Commit Graph

11 Commits

Author SHA1 Message Date
The Magician
569d7403a0 add trigger_id to cloudbuild_build_trigger, send it on update (#2743) 2018-12-21 18:01:55 -08:00
The Magician
7f93bf73a4 mark trigger_template.project computed since we set it to getProject (#2655) 2018-12-20 17:22:22 -08:00
The Magician
c605b0bc4b [Terraform]: Apply gofmt -s to all files managed by MM (#2676)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
1bafe6b8e0 added ignored_files and included_files to google_cloudbuild_trigger (#2553) 2018-12-20 17:22:22 -08:00
nownabe
35d0ec1a66 Update cloudbuild trigger in place (#2121)
Hi!

Now any changes of cloud build trigger create new one, this PR makes triggers modifiable in place.

I referred to [bigquery dataset](9f0b792f09/google/resource_bigquery_dataset.go (L353)). If theare are better examples, I'd like to know them.
2018-12-20 17:22:22 -08:00
Riley Karson
2f6b39ee21 Revert "Update cloudbuild trigger in place (#2121)"
This reverts commit 02eb26bdb3.
2018-11-13 07:50:37 -08:00
nownabe
02eb26bdb3 Update cloudbuild trigger in place (#2121)
Hi!

Now any changes of cloud build trigger create new one, this PR makes triggers modifiable in place.

I referred to [bigquery dataset](9f0b792f09/google/resource_bigquery_dataset.go (L353)). If theare are better examples, I'd like to know them.
2018-11-12 15:15:39 -08:00
Nathan McKinley
aaf18dacca
CloudBuild Trigger substitutions (#1810) 2018-07-25 13:38:35 -07:00
Jamie Lennox
f8eb752809 Allow using in repo configuration for cloudbuild trigger (#1557)
* Allow using in repo configuration for cloudbuild trigger

Cloudbuild triggers have a complex configuration that can be defined
from the API. When using the console, the more typical way of doing this
is to defined the configuration within the repository and point the
configuration to the file that defines the config.

This can be supported by sending the filename parameter instead of the
build parameter, however only one can be sent.

* Acceptance testing for cloudbuild trigger with filename

Ensure that when a cloudbuild repo trigger is created with a filename,
that filename is what actually ends up in the cloud.

* Don't specify "by default" in cloudbuild-trigger.

The docs shouldn't say that "cloudbuild.yaml" is used by default. There
is no default from the APIs, but the console suggest using this value.
Just say it's the typical value in documentation.
2018-06-05 10:17:20 -07:00
Jamie Lennox
cd83bab7dc Use the project defined in the trigger_template when creating trigger (#1556)
When creating a trigger by using the project defined in the schema we
enforce that the repo must be in that same project. We should be looking
at the project defined in the trigger_template data and falling back to
that first project if not found.

Closes: #1555
2018-05-29 11:38:12 -07:00
Dan Couture
4f7a6c828f Add new google_cloudbuild_trigger resource (#1357) 2018-05-07 12:53:34 -07:00