在 Hudson 中配置 Bazaar

发布于 2024-10-19 02:18:21 字数 277 浏览 8 评论 0原文

我正在尝试在 Hudson 中为 VC++ 项目配置任务。我能够使用 MSBuild 任务从文件系统构建项目。但是,当我尝试配置任务以签出集市存储库来进行构建时,签出始终无法进行身份验证。机器上设置了 Bazaar 无密码访问,当我使用 bzr cmd 行时,无需密码即可结帐。另一篇文章建议我应该将 id_rsa 放在 C:\Documents and Settings\Administrator.hudson 中 - 但这也没有帮助。在 Subversion 配置中,我看到了一种提及用户名和密码的方式。有什么办法可以解决这个问题吗?

I am trying to configure a task in Hudson for a VC++ project. I was able to build a project from the file system with MSBuild task. But when I try to configure the task to check out a bazaar repo to do the build, checkout is always failing in authentication. Bazaar passwordless access is setup on the machine and when I use bzr cmd line, checkout is happening without password. Another post suggested that I should have the id_rsa in C:\Documents and Settings\Administrator.hudson - but that also did not help. In Subversion config I saw a way of mentioning username and password. Is there any way to get around this problem.

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

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

发布评论

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

评论(2

相守太难 2024-10-26 02:18:21

我假设您已经在 Windows 中设置了相当于 ~/.bazaar/authentication.conf 的身份验证(使用 bzr version -v 来获取正确的位置)。

hudson 是否以与用于连接命令行的用户相同的用户身份运行?因为这会影响它将尝试使用哪个authentication.conf。

我的 hudson 使用authentication.conf 很好,但我在 Ubuntu 上运行它。

I assume you have set up the authentication in the windows equivalent of ~/.bazaar/authentication.conf (use bzr version -v to get the correct location).

Is hudson running as the same user as the one you use to connect with the command-line? Because that will impact which authentication.conf it will try to use.

My hudson is using authentication.conf fine but I run it on Ubuntu.

倾城泪 2024-10-26 02:18:21

我解决了这个问题。 Windows 中不考虑authentication.conf。我通过 http 访问了该存储库,并使用该 URL 配置了集市。它能够使用 http 协议下载存储库,而无需询问密码。我做的另一件事是在 hudson 中创建了一个用户名,该用户名与在 bazaar 存储库中具有访问权限的用户相匹配,这解决了另一个问题,即要求名为 pwd 的用户。

I solved the problem. The authentication.conf is not being considered in windows. I made the repo accessible through http and configured the bazaar with that URL. It was able to download the repo with http protocol without asking for password. One more thing I did was I created a username in hudson, which I matched with a user having access in the bazaar repo which solved another problem which was asking for a user named pwd.

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