Build svn revision in hudson

I configured the build parameter in Hudson for the version number. I would like to set the default so that the SVN head is built when the version number is not specified / changed. HEAD doesn't seem to work.

This is my subversion repository configured in hudson:

 http://my_svn_location/ trunk@ ${revision} 

I see the following error when building:

 Location 'http://my_svn_location/ trunk@HEAD ' does not exist. 

Any workarounds?

+1
source share
1 answer

If you simply set svn for your location: http://my_svn_location/trunk , hudson will select the latest version (i.e. HEAD) from the trunk.

So, you can set it like this: http://my_svn_location/trunk${revision} , and then set the version parameter @1234 if you want to get a specific version and an empty string ('') when you want HEAD. Note that @ is part of the build parameter. Is this what you were looking for?

I'm just wondering why you don't always get HEAD?

+6
source

Source: https://habr.com/ru/post/1309111/


All Articles