Search code examples
githubteamcityteamcity-9.0

How do I resolve Repository not found errors in Teamcity?


I've multiple projects configured exactly the same way using the same VCS root. All that changes for the projects is the project name, so to keep things DRY I share the root with the following fetch url:

[email protected]:<myorg>/%conf.GitProjectName%.git

For one single project this fails with:

List remote refs failed: cannot locate repository at [email protected]:<myorg>/<My project>.git: ERROR: Repository not found.

This is really weird and I can clone the git repo using [email protected]:<myorg>/<My project>.git without any problem. Any idea about how to debug this?


Solution

  • This was not due to teamcity, it was because of github's new way to give teams rights to a repository which wasn't there before I think. Didn't delete the question to help other that might have the problem.