Hudson with maven exec plugin failing to return

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson with maven exec plugin failing to return

aarti.thorat
I am trying to integrate execution of selenium tests with hudson. In doing so I need to setup the webapp with the latest built code hence I am using 'mvn exec:exec' in hudson to startup a webapp with appropriate war files. The executable in the exec plugin is a bat file which shutsdown tomcat (5.5.23), copies the right war file and starts up tomcat. Running this on hudson starts up the webapp perfectly fine, but hudson seems to not return after  starting up tomcat to execute the next maven task of 'integration-test'.

turning on debug logging for maven is not helping as nothing is being logged when hudson seems to be executing (?) after successfully executing startup.bat.

Thanks!
-aarti.
Reply | Threaded
Open this post in threaded view
|

Re: Hudson with maven exec plugin failing to return

Kohsuke Kawaguchi
Administrator

To see if I understand you, you use the native m2 job type, and let
Hudson launch Maven, which in turn launches Tomcat batch file, but when
the batch file is done processing, the execution doesn't seem to come
back to Maven? Is that right?

If so, that sounds like a Maven problem, but I suspect it has the same
issue as Hudson, which is described in
http://hudson.gotdns.com/wiki/display/HUDSON/Spawning+processes+from+build

aarti.thorat wrote:

> I am trying to integrate execution of selenium tests with hudson. In doing so
> I need to setup the webapp with the latest built code hence I am using 'mvn
> exec:exec' in hudson to startup a webapp with appropriate war files. The
> executable in the exec plugin is a bat file which shutsdown tomcat (5.5.23),
> copies the right war file and starts up tomcat. Running this on hudson
> starts up the webapp perfectly fine, but hudson seems to not return after
> starting up tomcat to execute the next maven task of 'integration-test'.
>
> turning on debug logging for maven is not helping as nothing is being logged
> when hudson seems to be executing (?) after successfully executing
> startup.bat.
>
> Thanks!
> -aarti.
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Hudson with maven exec plugin failing to return

aarti.thorat
Using scheduled tasks was definitely the way to go. Thanks!

kohsuke wrote
To see if I understand you, you use the native m2 job type, and let
Hudson launch Maven, which in turn launches Tomcat batch file, but when
the batch file is done processing, the execution doesn't seem to come
back to Maven? Is that right?

If so, that sounds like a Maven problem, but I suspect it has the same
issue as Hudson, which is described in
http://hudson.gotdns.com/wiki/display/HUDSON/Spawning+processes+from+build

aarti.thorat wrote:
> I am trying to integrate execution of selenium tests with hudson. In doing so
> I need to setup the webapp with the latest built code hence I am using 'mvn
> exec:exec' in hudson to startup a webapp with appropriate war files. The
> executable in the exec plugin is a bat file which shutsdown tomcat (5.5.23),
> copies the right war file and starts up tomcat. Running this on hudson
> starts up the webapp perfectly fine, but hudson seems to not return after
> starting up tomcat to execute the next maven task of 'integration-test'.
>
> turning on debug logging for maven is not helping as nothing is being logged
> when hudson seems to be executing (?) after successfully executing
> startup.bat.
>
> Thanks!
> -aarti.
>


--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com