I have a Hudson job that launches a .bat
script file that itself launches my Jonas application server and a couple of other tasks too.
The script is properly launched from Hudson on my slave, then my application server is started but at the moment my Hudson job ends the application server is killed. This is due to the fact that all the processes launched during this process share the same pipes (stdin/sdtout/stderr) as explained here http://wiki.hudson-ci.org/display/HUDSON/Spawning+processes+from+build.
As you already understood, this is really not what I want! Actually I have another Hudson job that is launched right after the one I described above to test my application. Thus, as my application server has been killed at the same moment the Hudson jobs ended, my tests cannot run at all...
So how can I solve this?
This problem is strictly linked to the fact that it is Hudson that launches the script, if I launch the same script from the command line the problem does not occur at all...
In the link given above they propose to use the "at" command which allows to schedule a task in Windows. I don't really want to use this solution as this implies modifications in my .bat script because I launch it from Hudson.
- I suppose there is a way to say to my .bat file "Ok you are going to launch my application server BUT in an independent process". Do you guys know how to do this?
- Maybe Hudson is able to solve this issue? Do you Hudson's guys know how?
Thanks in advance for you help!