Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HowTo: Teamcity + GitHub

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

I can't 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.

like image 921
Jeff Fritz Avatar asked Apr 28 '09 09:04

Jeff Fritz


People also ask

How do you integrate TeamCity?

To integrate ReadyAPI Test with TeamCity, you need to install the ReadyAPI Test Functional Testing plugin provided by SmartBear into TeamCity. It uses the Functional TestRunner to execute tests remotely, and enables you to call this runner from TeamCity builds.

How do I set up a TeamCity job?

Create your first project To add your first project, click Administration in the upper right corner of the TeamCity UI and then click Create project. There are several ways to create a project in TeamCity: automatically from a repository URL, from a connection to a specific VCS, or manually.


1 Answers

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
like image 57
Jeff Fritz Avatar answered Oct 02 '22 05:10

Jeff Fritz