By default, the Hudson Home directory is ${HOME}/.hudson
. It is possible to change the location of the Hudson Home directory by setting the HUDSON_HOME
environment variable before starting the application server, or by setting the HUDSON_HOME
system property or JNDI environment variable in your application server. For application server-specific documentation refer to:
http://wiki.eclipse.org/Containers
The most interesting item in the .hudson
directory is the jobs directory. This will be the location of all the jobs that we will define during the course of this book.
Note
The Hudson Home directory will be created in the ${HOME}
directory of the user running the web application. Since Hudson can run scripts, it is more secure if the application server that is running Hudson is not running as the root or as an administrator user. This will prevent a malicious or careless user from running destructive scripts.