Build not failing when tasks run using exec fails



1 comment

  • Avatar
    Anandha Krishnan

    Go will fail the build if an "exec" task returns with a non zero code. Just make sure your maven target (I am guessing you are using the test target on a maven build) exectues and return with a non zero value.

    This is usually done using a failure property which is set in case the task fails. The Junit task in case of ant has a similar property.

    Also just make sure your maven target is not set to ignore this failure property. (This will casue the target to not fail inspite of test failures).

    Comment actions Permalink

Please sign in to leave a comment.