Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Glassfish
Installation
To install Hudson on Glassfish, simply copy hudson.war to $GLASSFISH_HOME/domains/domain1/autodeploy
. Alternatively, you can do this from the admin GUI. See that document for more about this.
Upgrade
You can upgrade your existing Hudson by overwriting $GLASSFISH_HOME/domains/domain1/autodeploy/hudson.war
with a newer version. Again, you can also do this from the admin GUI by choosing to redeploy the application as illustrated below.
Setting HUDSON_HOME
There 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 Hudson
See the forum thread on this topic.
- [ http://www.nabble.com/How-to-login-to-Hudson-with-a-certificate-td22826800.html Authenticate users via HTTPS client certificate]
Relevant Issues
See the list of issues filed that are specifically marked relevant to Glassfish.
There is also a known issue on Glassfish Enterprise that causes some Hudson pages to fail. To workaround this issue, use Hudson 1.360 or higher and start Glassfish with -Dhudson.util.Secret.provider=SunJCE
. See section above for into on setting system properties.