如何在 TeamCity 5 中配置托管 Mercurial

发布于 2024-08-15 23:13:52 字数 398 浏览 10 评论 0原文

这可能是一个简单的问题,我感觉非常愚蠢,因为我找不到任何类型的文档。

我刚刚安装了 TeamCity 5,我想从我的 Mercurial 托管中获取文件,但有两个字段我无法弄清楚。

HG 命令路径。我应该在这里放什么?包含什么文件的路径?我可以在某处获取该文件的示例吗? 主机通过 SSH 使用 Mercurial,我在哪里定义我的私钥?

从中提取更改?我应该把我从 ie 克隆的地址 ssh://[email protected]< /a>/项目

This is probably a simple problem and I'm feeling exceptionally dumb because I can't find a any kind of documentation.

I've just installed TeamCity 5 and I want to get files from my Mercurial hosting and there is two fields I just can't figure out.

HG Command path. What should I put here? The path to a file containing what? Can I get an example of that file somewhere?
The host is using Mercurial over SSH where do I define my private key?

Pull changes from? Should I put the address I'm cloning from i.e. ssh://[email protected]/project

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云胡 2024-08-22 23:13:52

上周我为我的 TeamCity 5 服务器解决了这个问题。

HG 命令路径:HG
从以下位置提取更改:https://bitbucket.org/.../.../

不要将 username@ 放在 URL 中。这是在用户名/密码字段中指定的。如果您在 URL 中包含用户名,则会失败,因为配置工具中存在错误。您还将看到附加到线程的配置屏幕截图:

http://www.jetbrains.net/devnet/message/5254640#5254640" rel="noreferrer"> jetbrains.net/devnet/message/5254640#5254640

我建议使用 HTTPS 进行工作,然后如果可能的话转向 SSH。这将事情分解为两个更容易解决的配置问题。我使用以下教程在我的 Windows 客户端计算机上运行 SSH。

http://www.codza.com/mercurial-with-ssh-setup -on-windows

我尚未在我的 TeamCity 服务器上设置此功能。不过,我确实让 TeamCity 通过将 ini 文件放入 \Documents and Settings\TeamCity(该服务运行的帐户)中来获取我的 Mercurial.ini 设置。

I figured this out for my TeamCity 5 server last week.

HG Command path: HG
Pull changes from: https://bitbucket.org/.../.../

Don't put the username@ in the URL. This is specificed as in the Username/Password fields. If you include the username in the URL it'll fail as there is a bug in the configuration tool. You'll also see a screenshot of the configuration attached to the thread:

http://www.jetbrains.net/devnet/message/5254640#5254640

I'd suggest getting things working with HTTPS and then moving to SSH if possible. This breaks things down into two easier to solve configuration problems. I used the following tutorial to get SSH going on my Windows client machine.

http://www.codza.com/mercurial-with-ssh-setup-on-windows

I've not set this up on my TeamCity server yet. However I did get TeamCity to pick up my Mercurial.ini settings by putting the ini file in \Documents and Settings\TeamCity, which is the account the service runs under.

玩心态 2024-08-22 23:13:52

我没有使用过 team city,但我认为 hg 命令路径可能是本地 Mercurial 可执行文件的完整路径。对于我(在 Linux 上)来说,这是:

$ type hg
hg is /usr/bin/hg

在 Windows 上,它是您使用的 Mercurial Windows 安装程序(众多)中放置系统路径中的“hg”可执行文件的位置。

将更改从 URL 之类的声音拉到存储库,因此:

ssh://[email protected]/project

或者

ssh://[email protected]//project  # note the _two_ double slashes

如果您在服务器端使用绝对路径。

您的私钥位置/规范取决于您用于 ssh 的内容以及您是否正在运行 ssh-agent,但这里有一个明确指向 Mercurial.ini 中的链接,这似乎是合理的:

http://dev.openttdcoop.org/projects/home /wiki/Configuring_TortoiseHg_(Windows)#Pointing-to-you-Private-key

I've not used team city, but I think hg command path is probably the full path to your local mercurial executable. For me (on linux) that's:

$ type hg
hg is /usr/bin/hg

On windows it's where the 'hg' executable in your system path was placed by whichever (of the many) windows installers for mercurial you used.

Pull changes from sounds like the URL to the repo, so:

ssh://[email protected]/project

or

ssh://[email protected]//project  # note the _two_ double slashes

if you're using absolute paths on the server side.

Your private key location/specification depends on what you're using for ssh and whether or not you're running ssh-agent, but here's a links that explicitly points from within mercurial.ini, which seems sound:

http://dev.openttdcoop.org/projects/home/wiki/Configuring_TortoiseHg_(Windows)#Pointing-to-you-Private-key

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文