Q:

How to determine if slow-deployed application is deployed correctly?

I have a Jenkins project that builds an application and then, if successful, copies the application to our test-environment and restarts the Tomcat server. The Tomcat startup takes around 90 seconds. How can I automatically and / or programmatically check if the Tomcat startup was successful so I can trigger a deploy to our staging environment? We have a monitor URL I could monitor, but I have no clues on how to implement this in Jenkins.

A:

I simply solved this by setting up a simple exec-job in Jenkins that executes the following command.
curl -f -m 120 -o /dev/null -s -S http://example.org:8080/application

