Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat script not working when run from Hudson

I'm trying to run a script which stops and starts Tomcat on linux.

When I run it from the command line it works fine. But it does not seem to work when I run the same script from the "Execute Shell" build step in a Jenkins/Hudson job. Jenkins doesn't report any errors but if I try going to the tomcat page then I get a page not found error.

So Jenkins seems able to stop the server, but not bringing it back up.

I'd be grateful for any help.

like image 374
Hasan Zaidi Avatar asked Apr 20 '11 10:04

Hasan Zaidi


1 Answers

Try unsetting the BUILD_ID in your 'shell execute' block. You might even not need to use nohup in this case

BUILD_ID=
./your_hudson_script_that_starts_tomcat.sh
like image 137
Bernhard Avatar answered Oct 14 '22 08:10

Bernhard