users@glassfish.java.net

Re: glassfish started during hudson job is killed/exits after build/hudson job is done?

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Fri, 21 Aug 2009 17:01:27 -0700

AFAIK, Hudson job does not kill the process.
You may want to share the Hudson build script.


Alex Sherwin wrote:
> Setting up hudson to do continuous integration, on a fairly complex
> build process, which runs a bunch of shell scripts. One of the shell
> scripts starts a glassfish domain that the build will be deployed to,
> which works fine. However, once the entire hudson job completes, I'm
> assuming it must be killing a user/shell session, and at that point
> the glassfish process it started has died.
>
> I've tried starting glassfish similarly to hudson like so:
>
> su
> /bin/bash -xe /path/to/my/glassfish-start-script.sh
> exit
>
> After existing the su shell session, the glassfish domain is still
> running (as it should be). is hudson explicitly killing processes
> that it has started?
>
> Does anyone know how to prevent this from happening?
>
> hudson is running on glassfish, and the server is Solaris 10 on SPARC
>
>
>
>