git with ssh:// url (using gitolite)

 I read a few posts with folks trying to do the same, but they must be on a different version, or are otherwise 6 years old, or something.

In any event, I've just installed TeamCity and am trying to set up a new project.  The url for my git repo is

ssh://git@ruby.localnet.dev:225/testing

It's a gitolite setup on my local net.

But immediately after I click on 'Proceed', the error is very specific: Cannot create a project using the specified URL. The URL is not recognized.

Did I overlook a document that describes how to get this working? I saw a document about setting up an SSH Agent, but that presumes an existing project. Any pointers would sure be appreciated!

0
2 comments

Hi Andrius,

It seems you are talking about this issue here: https://youtrack.jetbrains.com/issue/TW-49655. The description includes a workaround and the comments an explanation on why it happens.

Could you test it out?

0
Avatar
Permanently deleted user

Thanks for the tip!

Well, although those instructions didn't get me exactly there, but it sure pointed me in the right direction for using TeamCity with a gitolite install.

For posterity, this is what worked for me with TeamCity-2017.1.1:

1. Create a new project. Don't set up a VCS.

 

Now, I went back to Edit Project Settings

2 Click on VCS Roots

3. Create VCS root

4. Edit as follows:

Type of VCS: git

VCS root name: myvcsroot

VCS root ID: PROJECTNAME_myvcsroot

Fetch URL: ssh://my_gitolite_server:<port if not 22>/reponame

Push URL:  Same as Fetch URL

Username: git

5. Test Connection: Connection successful!

6. Do a little dance.

7. Make a little love.

8. Get down tonight.

 

0

Please sign in to leave a comment.