操作方法:Teamcity + GitHub [英] HowTo: Teamcity + GitHub

查看:33
本文介绍了操作方法:Teamcity + GitHub的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人成功配置 Teamcity 以从 GitHub 监控、提取和构建?

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

我似乎无法弄清楚如何在何处以及如何为 Teamcity 配置 SSH 密钥.我在系统帐户下将 Teamcity 作为系统服务运行.那么 Teamcity 将其 SSH 配置存储在哪里?

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?

编辑

要让它工作,我需要阻止代理在系统帐户下运行.

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

推荐答案

好的...我得到这个开始在我的 Windows 服务器上工作.以下是我配置 TeamCity 4.5 Professional 的步骤:

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

  1. 下载了 JetBrains Git VCS 插件
  2. 将下载的zip文件复制到.BuildServerplugins
  3. 在管理 > 编辑构建配置 > 编辑 VCS 根配置屏幕中,我选择了Git (JetBrains)"
  4. 从 GitHub 项目页面输入我的克隆网址
  5. 为身份验证方法设置默认私钥"——这很重要
  1. Downloaded the JetBrains Git VCS Plugin
  2. Copied the downloaded zip file to .BuildServerplugins
  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. TeamCity BuildAgent 应该以标准用户身份运行,并为该用户正确配置了 SSH 安装.
  2. 按照 GitHub SSH 指导进行 SSH 配置

  • 将用户名留空.这应该已经在您的 GitHub 克隆 URL 中提供了
  • 这篇关于操作方法:Teamcity + GitHub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆