R
rips
Hi,
Is there a way to add a task that runs even after something causes the
build to fail?
I use <parallel> to start a server, and then run unit tests. If a unit
test fails, my build fails.
But I need to stop the server before ending the build process.
so what I have is something like
<parallel failonany="true">
start server
<sequential>
run-tests
stop server
</sequential>
</parallel>
if run tests fails, the build process stops, and the server continues
to run.
I guess i need something like the java try catch
try
start server
run tests
stop server
catch
stop server
halt the failed build
Thanks.
Is there a way to add a task that runs even after something causes the
build to fail?
I use <parallel> to start a server, and then run unit tests. If a unit
test fails, my build fails.
But I need to stop the server before ending the build process.
so what I have is something like
<parallel failonany="true">
start server
<sequential>
run-tests
stop server
</sequential>
</parallel>
if run tests fails, the build process stops, and the server continues
to run.
I guess i need something like the java try catch
try
start server
run tests
stop server
catch
stop server
halt the failed build
Thanks.