How do you set the working directory for your Jenkins (formerly known as Hudson) continuous build server to something else than System.getProperty("user.home")+"/.hudson"?

The answer is to set the environment variable JENKINS_HOME to the directory you want to use as Jenkins working directory.

An example could be:

JENKINS_HOME=C:\ci\jenkins\workspace

Resources