[SOLVED] "Couldn't find any revision to build" when using self-hosted git-repository

Hi,

this post is for people with the similar problem, since we couldn’t find any helpful solution online:

Up until recently we used SVN as version control system. We migrated to Git but couldn’t get our cloud-builds running.

Our solution:

We had to create a new Cloud Build project with the new VCS and repository and the builds worked again.

Is there another way, without using a new project and keeping the build history?

After setting the project to git, you probably would have needed to go to each target configured for the project and select a branch to build from.