Hi,
I'm running sbt through a shell task in a jenkins job with the following
command-line:
sbt [uninteresting options] clean compile test cucumber
So, if the compilation fails, then sbt exits with a non-zero exit code,
and the build is marked as failed in Jenkins. Fine, that's exactly what
I want.
If the compilation succeeds but one of the test fails, then sbt will
also exit with a non-zero status code without trying to run the cucumber
task which is afterward. It also fully fails the build.
I'd like to have a way to tell sbt to not exit with a non-zero exit code
if a test fails, so that I can mark the build as unstable (instead of
failed). Moreover if I could make sure the cucumber task is run
independently of having test failure that'd be awesome.
Is there a way to do that through sbt configuration?
Thanks!
--
Brice Figureau
My Blog:
http://www.masterzen.fr/