I have a Spring Boot application which runs on embedded Tomcat servlet container mvn spring-boot:run
. And I don’t want to deploy the project as separate war to standalone Tomcat.
Whenever I push code to BitBucket/Github, a hook runs and triggers Jenkins job (runs on Amazon EC2) to deploy the application.
The Jenkins job has a post build action: mvn spring-boot:run
, the problem is that the job hangs when post build action finished.
There should be another way to do this. Any help would be appreciated.
nohup
to run it as a background process. – Steve Feb 13 '15 at 13:05java -jar
ring the packaged artifact? – kryger Feb 13 '15 at 14:24| at now + 1 minutes
do the trick. – azizunsal May 26 '15 at 14:41