<waitfor maxwait="${waitMinutes}" maxwaitunit="minute" checkevery="10000" timeoutproperty="timeout">
<http url="${waitUrl}" />
</waitfor>
+ <!-- Print load averages to get an indicator on whether the server still attempts to start up -->
+ <exec executable="uptime" />
<fail if="timeout" message="${server} failed to deploy" />
<echo message="${server}: Demo deployed successfully." />
<scp file="${demo.war}" todir="${user}@${target-host}:demo.war" keyfile="${sshkey.file}" trust="yes" passphrase="${passphrase}" />\r
\r
<!-- timeout in 15 minutes -->\r
- <sshexec host="${target-host}" outputproperty="start-output" timeout="900000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml startup-and-deploy" />\r
+ <sshexec host="${target-host}" outputproperty="start-output" timeout="900000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml startup-and-deploy" failonerror="false" />\r
<antcall target="echo-prefix">\r
<param name="prefix" value="${target-server}: " />\r
<param name="message" value="${start-output}" />\r
</antcall>\r
+ \r
+ <fail message="${start-output}">\r
+ <condition>\r
+ <not>\r
+ <contains string="${start-output}" substring="Demo deployed successfully" />\r
+ </not>\r
+ </condition>\r
+ </fail>\r
\r
<copy file="integration-testscripts/common/integration_test.tpl" tofile="integration-testscripts/integration-test-${target-server}-servlet.html" overwrite="true" />\r
<antcall target="integration-test-servlet">\r
</catch>\r
<finally>\r
<!-- timeout in five minutes -->\r
- <sshexec host="${target-host}" outputproperty="stop-output" timeout="300000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml shutdown-and-cleanup" />\r
+ <sshexec host="${target-host}" outputproperty="stop-output" timeout="300000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml shutdown-and-cleanup" failonerror="false" />\r
<antcall target="echo-prefix">\r
<param name="prefix" value="${target-server}: " />\r
<param name="message" value="${stop-output}" />\r