Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to parameterize subversion repository URL with revision in Hudson?

I have a job in Hudson with Subversion as Source Code Management.
But I do not want always to update working copy to HEAD revision.
I need to have ability to choose SVN revision during start of this job.
It is possible to parameterize build with revision number.
But as far as I can see I cannot use parameter in repository URL.
I can only hardcode revision.
Is it true?

like image 884
Volodymyr Bezuglyy Avatar asked Jan 22 '23 03:01

Volodymyr Bezuglyy


2 Answers

You can declare a String parameter REVISION and then use http://host/path@${REVISION} as repository URL. When starting a build you will then be asked the revision number. You can give a specific revision or HEAD to build the latest.

like image 151
Tom Avatar answered Apr 28 '23 09:04

Tom


Yes, that's the way it works. For more information:

In JIRA see: http://issues.hudson-ci.org/browse/HUDSON-4412

Also, see: Can a Parameterized Hudson Build Override the svn revision?

like image 23
William Leara Avatar answered Apr 28 '23 09:04

William Leara