How to build a specific revision of SVN in Hudson/Jenkins

后端 未结 4 1920
情歌与酒
情歌与酒 2021-01-01 15:21

Background:

We use NAnt as our building tool.

Question:

How can I tell Hudson to build a specific

相关标签:
4条回答
  • 2021-01-01 15:58

    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
    
    0 讨论(0)
  • 2021-01-01 16:09

    (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

    0 讨论(0)
  • 2021-01-01 16:10

    Tag the revision, give Hudson the tag url

    0 讨论(0)
  • 2021-01-01 16:12

    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

    0 讨论(0)
提交回复
热议问题