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?
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.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With