开发者

Can a Parameterized Hudson Build Override the svn revision?

I'd like to setup the ability to rebuild from a specific revision. The default would be HEAD and a user could rebuild an old build (that had been removed). I'd still l开发者_如何学Cike to leverage all of hudson's reporting regarding SVN etc.

Is there a good way to do this?


What I would try. Unfortunately I don't have the time to verify my approach.

A quick way would be to use an parameter and leave a blank if you want to go to head. To check out an older revision, enter "@" plus the revision number as the value for the parameter.

You than just need to add the parameter to the URL for your subversion checkout. I am not sure about the correct syntax. I suspect it is something like ${Parameter_Name}.

Let us know if this works.


Have you tried the Subversion Release Manager plug-in? Sounds like what you're looking for.


I made a request: http://issues.hudson-ci.org/browse/HUDSON-4412

but it didn't go anywhere.

The way we're doing it is having the script call SVN.EXE to get the revision we want. You can pass in the revision ID as a parameter to SVN.EXE.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜