The easiest way is to:
sudo vi /etc/default/hudson
and change:
# hudson home location HUDSON_HOME=/home/hudson
But, of course, it would be cool to just drive it from the shell’s ENV variable, which does not work at the moment of writing: hence the above “certain way” to do it.