操作方法:Teamcity + GitHub [英] HowTo: 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:
- 下载了 JetBrains Git VCS 插件
- 将下载的zip文件复制到
.BuildServerplugins
- 在管理 > 编辑构建配置 > 编辑 VCS 根配置屏幕中,我选择了Git (JetBrains)"
- 从 GitHub 项目页面输入我的克隆网址
- 为身份验证方法设置默认私钥"——这很重要
- Downloaded the JetBrains Git VCS Plugin
- Copied the downloaded zip file to
.BuildServerplugins
- In the Administration > Edit Build Configuration > Edit VCS Root configuration screen, I selected "Git (JetBrains)"
- Entered my Clone Url from the GitHub project page
- Set for authentication method "Default Private Key" -- this is IMPORTANT
- TeamCity BuildAgent 应该以标准用户身份运行,并为该用户正确配置了 SSH 安装.
- 按照 GitHub SSH 指导进行 SSH 配置
这篇关于操作方法:Teamcity + GitHub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!