如何在 Hudson/Jenkins 中构建 SVN 的特定修订版
背景:
我们使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您配置 svn 位置,包括修订号
您可以使用 hudson 作业的参数,而不是将修订号硬编码在那里
You configure the svn location including the revision number
Instead of putting the revision number hard coded in there you can use a parameter for the hudson job
(缺乏评论代表,所以我回答)
彼得的回答很好!
语法对我来说不是很清楚。解决方案是......阅读 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 !

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
标记修订版本,为 Hudson 提供标记 url
Tag the revision, give Hudson the tag url
这是 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