开发者

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:\programm开发者_JS百科e\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?


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


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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜