10 Replies Latest reply on Aug 5, 2014 2:11 PM by richard mcleod

    How to fail a batch job when non-compliant?

    Jonas Valkiunas

      We have a compliance job that verifies a server's state for a given application.  We also have a batch job that is used to start an application by calling various other jobs.


      We'd like to insert the compliance job as the first job in the batch job.  If compliance finds non-compliant rules, we would like to stop processing the remainder of the batch job, ie, make it fail.


      Since the compliance job successfully runs, it returns 0 (no errors) even when there are non-compliant rules discovered, which continues batch job execution.  How can we stop batch job execution upon a successful compliance run that finds non-compliant rules?