Tomas Jansson
Tomas Jansson

Reputation: 23462

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?

Upvotes: 2

Views: 3683

Answers (2)

Kirzilla
Kirzilla

Reputation: 16596

I've failed to add two or more github reps to teamcity using the same private key. I've generated another private/public pair, added public key to github for new repo, then added private key into teamcity. This worked for me. Hope it helps.

Upvotes: 0

Tomas Jansson
Tomas Jansson

Reputation: 23462

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.

Upvotes: 6

Related Questions