Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure hosted Mercurial in TeamCity 5

This is probably a simple problem and I'm feeling exceptionally dumb because I can't find a any kind of documentation.

I've just installed TeamCity 5 and I want to get files from my Mercurial hosting and there is two fields I just can't figure out.

HG Command path. What should I put here? The path to a file containing what? Can I get an example of that file somewhere? The host is using Mercurial over SSH where do I define my private key?

Pull changes from? Should I put the address I'm cloning from i.e. ssh://[email protected]/project

like image 645
Emil C Avatar asked Dec 20 '09 20:12

Emil C


1 Answers

I figured this out for my TeamCity 5 server last week.

HG Command path: HG Pull changes from: https://bitbucket.org/.../.../

Don't put the username@ in the URL. This is specificed as in the Username/Password fields. If you include the username in the URL it'll fail as there is a bug in the configuration tool. You'll also see a screenshot of the configuration attached to the thread:

http://www.jetbrains.net/devnet/message/5254640#5254640

I'd suggest getting things working with HTTPS and then moving to SSH if possible. This breaks things down into two easier to solve configuration problems. I used the following tutorial to get SSH going on my Windows client machine.

http://www.codza.com/mercurial-with-ssh-setup-on-windows

I've not set this up on my TeamCity server yet. However I did get TeamCity to pick up my Mercurial.ini settings by putting the ini file in \Documents and Settings\TeamCity, which is the account the service runs under.

like image 93
Ade Miller Avatar answered Oct 19 '22 15:10

Ade Miller