Why does a git push on any Project trigger a build

2019-05-23 04:10发布

I want to enable the Google Cloud Build Github App in several Github projects.

  1. So on the Google Cloud Build Github App, I click on grant this app access to your GitHub account

enter image description here

  1. Then on the following screen, I install Google Cloud Build on All repositories.

enter image description here

  1. Then I'm redirecting to a couple of Google Authorization screens.

  2. Then I endup on the Google following screen, where I select an existing Google project-id then accept the consent screen.

enter image description here

The issue is: a git push on any of my Github repo triggers a build in this google project-id (and not on his related Google project-id)

enter image description here

Of course I want

  • a push in Github project#1 to trigger a build in Google Cloud Build project#1
  • a push in Github project#2 to trigger a build in Google Cloud Build project#2

2条回答
我只想做你的唯一
2楼-- · 2019-05-23 04:12

I believe that's because the app works on the Account level and not on the project level.

查看更多
SAY GOODBYE
3楼-- · 2019-05-23 04:33

There is now an "Add another project" button that allows you to connect repositories directly to different projects when setting up the Google Cloud Build connection.

See this screenshot:

Add another project

查看更多
登录 后发表回答