You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
configures the region to run the build. If WorkerPool is configured, the region will be deduced from the WorkerPool configuration. If neither WorkerPool nor Region is configured, the build will be run in global(non-regional). See Cloud Build locations.
When WorkerPool property is supplied to GoogleCloudBuild configuration, gcb Builder incorrectly assumes the destination project for Cloud Build is project from WorkerPool string. The gcb Builder needs to create build in projectA but it erroneously fetches the location as projects/projectB/locations/us-east1 and tries to create a build in projectB.
This is not how Cloud Build Worker Pool configuration is suppose to work. The Cloud Build execution should be in projectA which is then using a shared/private Cloud Build Private Pool from a different project (projectB). Common pattern in enterprise environments.
Solution:
Update code that fetches location from WorkerPool string to use supplied projectID instead of assuming project from WorkerPool string.
The text was updated successfully, but these errors were encountered:
Bug:
Given the following GoogleCloudBuild configuration:
current
region
definition:When WorkerPool property is supplied to GoogleCloudBuild configuration, gcb Builder incorrectly assumes the destination project for Cloud Build is project from WorkerPool string. The gcb Builder needs to create build in
projectA
but it erroneously fetches the location asprojects/projectB/locations/us-east1
and tries to create a build in projectB.This is not how Cloud Build Worker Pool configuration is suppose to work. The Cloud Build execution should be in projectA which is then using a shared/private Cloud Build Private Pool from a different project (projectB). Common pattern in enterprise environments.
Solution:
Update code that fetches
location
from WorkerPool string to use suppliedprojectID
instead of assuming project from WorkerPool string.The text was updated successfully, but these errors were encountered: