-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_cloudbuild_trigger webhook triggered build created with no source repository to clone #9827
Comments
I also noticed that webhook-config and trigger template are not mutually excluding. in Cloudbuild you can buidup a trigger that relies on both. in the provider only one of them can be included in resource configuration (if you see Google APIs doc you can vier that only trigger_template and github are mutually exclusive ) |
@edwardmedia I added the other issue mainly as a reference. |
@frehov are you talking about the field https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers |
@edwardmedia, I'm not trying to be rude here, but the documentation was last updated today (August 19th, 2021) and when I opened this issue on the 17th those fields were definitely not present in the documentation. I'll see about opening an enhancement request about having both the field |
@frehov I had the same question as yours. If these two fields should be part of the feature, I agreed they should be included in that original implementation. But I don't know the details about the scope of this feature. I have checked the code. Unfortunately there is no a test / example for this feature. For a feature like this, we do like to have an example. On the other side, please keep in mind, there are a lot of times when fields are enabled one by one. In your case, you may ask for these two fields together. Sorry about the inconvenience. |
See #9883 Closing this issue then |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
version: V1.0.4
Affected Resource(s)
Terraform Configuration Files
Debug Output
Output created with:
TF_LOG_PATH=out.txt TF_LOG=DEBUG terraform apply -var 'project_id=innbyggerkontakt-dev' -target=google_cloudbuild_trigger.website-sanity-deploy-dev -auto-approve -no-color
https://gist.github.com/frehov/ccfe48f6405d0aedc66375eaae036d89
Panic Output
Expected Behavior
It should throw an error as there is no inline steps or repository associated with the build trigger being created.
Editing the trigger manually and highlighting the repository field at the "Source" heading, and exciting it yields the following message.
Actual Behavior
The cloudbuild trigger is created without issues, but is missing build steps or a source control association.
Steps to Reproduce
terraform plan -var='project_id=innbyggerkontakt-dev -target=google_cloudbuild_trigger.website-sanity-deploy-dev -auto-approve -no-color'
Important Factoids
We're authentication with application default credentials from personal accounts
The webhook triggers were imported into terraform state, and ran with terraform plan until no diff was shown
when configuring the webhook manually and adding the source repository, the response provided from google to terraform is the following
References
The text was updated successfully, but these errors were encountered: