Reputation: 31
Is there any way to have the war files of Hudson in an different directory or drive that the job files.
We want to have all executables in c:\programme\hudson and all jobs in f:\data\hudson.
I've alredy played around with in hudson.xml. But this redirects not only the job directory but copies also the whole war directory to the new destination folder.
Is there any way to configure Hudson (on a windows server) to have a separation of the executable and the data/job directories?
Upvotes: 2
Views: 613
Reputation: 10697
We run Hudson on a Windows server and use Tomcat as our container.
In this setup, you can set HUDSON_HOME to whatever you want, which holds the job configuration, and then the HUDSON.WAR file lives in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps.
Upvotes: 0
Reputation: 443
I'm not sure if this is what you want, but I run hudson simply via java -jar
, and then I can specify freely where the hudson war is. It seems the war unpacks into HUDSON_HOME when starting up, but I still have a separate directory where I keep the wars and download upgrades, and I can just change the shortcut when I want to run a newer war.
Upvotes: 0
Reputation: 16305
I think this problem has not an easy solution. Besides deploying to an app server, I can come up with two options.
Upvotes: 0
Reputation: 25401
Seting HUDSON_HOME to f:\data\hudson should do the trick
Upvotes: 1