English 中文(简体)
How to build a specific revision of SVN in Hudson/Jenkins
原标题:

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.

问题回答

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

(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

Tag the revision, give Hudson the tag url

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





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签