tags:

views:

214

answers:

1

I have configured a build parameter in Hudson for the revision number. I would like to set a default value so that SVN head is built when the revision number is not specified/changed. HEAD does not seem to be working.

This is my subversion repository configured in hudson:

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

I see the following error when I build:

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

Any workarounds?

+4  A: 

If you just set your svn location to: http://my_svn_location/trunk, hudson will fetch the latest (that is HEAD) revision from the trunk.

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

I am just wondering why you don't always fetch the HEAD?

Juha Syrjälä
thanks juha. that is a simplistic workaround. it just works great. my bad! it did not strike me:)we need to be able to build svn revisions quickly atleast when build breaks.