user438935
user438935

Reputation: 31

Different Hudson folders for wars and jobs

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

Answers (4)

William Leara
William Leara

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

Ingvald
Ingvald

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

Peter Schuetze
Peter Schuetze

Reputation: 16305

I think this problem has not an easy solution. Besides deploying to an app server, I can come up with two options.

  1. Configure the workspace explicitly in every job to point to F:\data\hudson
  2. create a file system link from c:\programme\hudson\jobs to f:\data\hudson. I have never used it. So have fun reading through the following links. hard links and junctions, symbolic links

Upvotes: 0

Thomas Lötzer
Thomas Lötzer

Reputation: 25401

Seting HUDSON_HOME to f:\data\hudson should do the trick

Upvotes: 1

Related Questions