views:

648

answers:

2

Has anybody successfully configured Teamcity to monitor, extract, and build from GitHub?

I can seem to figure how where and how to configure the SSH keys for Teamcity. I have Teamcity running as a system service, under a system account. So where does Teamcity stash its SSH configuration?

EDIT

To get this to work, I needed to stop the agent from running under a system account.

A: 

You may need a third party plugin like this

Dean
+3  A: 

Ok... I got this to start working on my Windows server. Here are the steps I took to configure TeamCity 4.5 Professional:

  1. Downloaded the JetBrains Git VCS Plugin
  2. Copied the downloaded zip file to .BuildServer\plugins
  3. In the Administration > Edit Build Configuration > Edit VCS Root configuration screen, I selected "Git (JetBrains)"
  4. Entered my Clone Url from the GitHub project page
  5. Set for authentication method "Default Private Key" -- this is IMPORTANT
    1. The TeamCity BuildAgent should be running as a standard user, with the SSH installation configured properly for that user.
    2. Follow the GitHub SSH directions for SSH configuration
  6. Leave the username blank. This should already be provided for in your GitHub clone URL
Jeff Fritz
Did you ever got it to work with TeamCity 5.0
azamsharp
I've got this working with TeamCity 5.1.2 using Private Key Authentication. The user that the Build Agent is running as has a private key in its home directory. Authentication didn't work until I left the username blank. I thought I would have to specify it because my clone URL belonged to another user, but I assume it is using the user that the Build Agent is running as.
Martin Owen
Be aware that this doesn't work if you're using SSH keys generated in PuttyGen - we spent quite a while messing around, before regenerating a key using ssh-keygen in GitBash which then worked immediately.
dwynne