InstallationTo install Hudson on Glassfish, simply copy huddson.war to $GLASSFISH_HOME/domains/domain1/autodeploy. Alternatively, you can do this from admin GUI. See this document for more about this. UpgradeYou can upgrade your existing Hudson by overwriting $GLASSFISH_HOME/domains/domain1/autodeploy/hudson.warwith a newer version. Again, you can also do this from the admin GUI by choosing to redeploy the application as illustrated below. ![]() Setting HUDSON_HOMEThere are many ways to do this, but one way to do so is to configure Glassfish to run with the "HUDSON_HOME" system property. From the command line, do the following: % ./asadmin create-jvm-options \-DHUDSON_HOME=/path/to/hudson_home You can do the same from the admin GUI, as illustrated below: ![]() This technique should be also used to increase the VM heap size, when your Hudson gets big. If you get confused or this doesn't work, just try to set HUDSON_HOME environment variable before launching Glassfish: % export HUDSON_HOME=/path/to/hudson_home % ./asadmin start-domain Glassfish needs to be restarted for this change to take effect. Securing HudsonSee the forum thread on this topic. Relevant IssuesSee the list of issues filed that are specifically marked relevant to Glassfish. |



Comments (1)
Jan 23, 2008
Jason Messmer says:
For my environment, I created a specific hudson user account and a specifi...For my environment, I created a specific hudson user account and a specific domain owned by that user. The hudson user owns the domain and controls the starting and stop of the domain. The hudson user was created because the build environment needed to be setup properly and the root user, which is the owner of the glassfish install (Unix), is very limited and permissions must be open on all build repositories under source control.
starting the domain:
asadmin start-domain --domaindir $HOME/domains hudson