Rob's Ramblings

Setting up TeamCity CI Server with Git and Unfuddle

I’ve been struggling trying to figure out exactly what settings I needed to use when setting up my TeamCity project using Git as the VCS/repository type and Unfuddle as the repository source.

I have my TeamCity server and build agent on one machine right now.  Unfuddle currently requires me to use SSH to work with so I need to setup a key and register it with an Unfuddle account.

For anyone else having troubles with this, here are the settings that I used to get it working.

Obviously, select Git as the VCS Type

image

The General Settings section is basically the default settings from TeamCity.  One thing to note is using the git@ forcing SSH.  Be sure to have Git installed on your TeamCity server (I installed msysgit) and have port 22 outbound opened up to connect to Unfuddle.

image

The Advanced Setting is what took me a while to figure out.  The things to note:

  • I needed to use a Private Key for Authentication to connect to Unfuddle.
  • Leave the user name blank
  • Create a key and put it on the server.  In my experience, you have to put a passphrase in the key.  If you leave it blank, it didn’t seem to work.

image

I setup polling every 5 minutes.  I’m not sure what the polling policy for Unfuddle is so you may want to change as needed.

image

That’s it.  Click the Test Connect button and everything should work as expected.

About these ads

October 11, 2010 - Posted by | Programming | , , , ,

1 Comment »

  1. […] so I didn’t want to use that again, however CruiseControl.net would work just the same.  See this post on how I’ve hooked up Git/Unfuddle and […]

    Pingback by Deploy Your Web Application by Checking in Code « Rob's Ramblings | December 31, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: