如何在 Hudson/Jenkins 中构建 SVN 的特定修订版

发布于 2024-08-22 12:29:25 字数 179 浏览 13 评论 0原文

背景:

我们使用NAnt作为我们的构建工具。

问题:

我如何告诉 Hudson 在 SVN 中构建特定修订版本,而不是默认的最新版本?

谢谢。

Background:

We use NAnt as our building tool.

Question:

How can I tell Hudson to build a specific revision in SVN, instead of the latest one by default?

Thanks.

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

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

发布评论

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

评论(4

眼波传意 2024-08-29 12:29:25

您配置 svn 位置,包括修订号

<SVN_URL>@revision

您可以使用 hudson 作业的参数,而不是将修订号硬编码在那里

<SVN_URL>@$param

You configure the svn location including the revision number

<SVN_URL>@revision

Instead of putting the revision number hard coded in there you can use a parameter for the hudson job

<SVN_URL>@$param
往事风中埋 2024-08-29 12:29:25

(缺乏评论代表,所以我回答)

彼得的回答很好!

语法对我来说不是很清楚。解决方案是......阅读 Jenkins 上下文帮助!
简单如这个!

我用于存储库 URL 的最终语法是这样的: http: //mySVNdomain.com/svn/myREPOname/trunk@414
当然,414 是我需要的修订。

如果您需要动态的东西,请不要错过使用 @$param 的可能性

(Lacking rep to comment, so I answer instead)

Peter answer's works well !

The syntax wasn't very clear to me. The solution was... reading Jenkins contextual help !
As simple as this !

The final syntax I used for my repo URL was this one: http://mySVNdomain.com/svn/myREPOname/trunk@414
where 414 was, of course, the revision I needed.

Don't miss the possibility of using @$param if you need something dynamic

书信已泛黄 2024-08-29 12:29:25

标记修订版本,为 Hudson 提供标记 url

Tag the revision, give Hudson the tag url

只为一人 2024-08-29 12:29:25

这是 Hudson 的一个插件,效果非常好。它显示修订列表并允许您选择一个进行构建。

http://wiki.hudson-ci.org/display/HUDSON/Subversion +发布+管理器

This is a plugin for Hudson that works really well. It displays a list of revisions and allows you to select one to build.

http://wiki.hudson-ci.org/display/HUDSON/Subversion+Release+Manager

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