Open muschellij2 opened 2 years ago
The default for cr_buildtrigger_repo() includes a Regex for the git branch, which is fine for the trigger but sourceToBuild does not accept regex only specific branches. Some useful error messages are needed here and perhaps the default .* changed or even altered when it's being used as a sourceToBuild although it's not standard anymore what the main/master branch is called.
Short term the fix is to specify the branch or tag for the sourceToBuild
I don't know what the purpose of the failed regex created in
cr_buildtrigger_repo
so I'll just show the (what I believe) to be standard use case for usinggoogleCloudRunner::cr_buildtrigger
with a GitHub repo. Making acr_trigger_repo
output with the source as thesourceToBuild
as well astrigger
:Drilldown
This drills down in different evaluations of the sub functions that are gone through before the error:
I don't know why this is excluded in your code as I don't see anything related to this and the docs don't indicate this: https://cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.triggers#BuildTrigger.GitRepoSource
Created on 2022-02-11 by the reprex package (v2.0.1)