title: Azure Pipeline Task (Pass or Fail) based on the output results
body: <p>I wanted to fail or continue to next task based on the output result that we get from the below logs.</p>
  <p><strong>Can we store the details and do a check?</strong></p>
  <p>If I have anywhere &quot;Failed&quot; text displayed in the output logs, then I should be able to fail the pipeline, if there is no &quot;Failed&quot; text then it needs to continue to next task, as seen in the below screenshot, I'm getting &quot;Failed&quot; text but the task is passed.</p>
  <p><strong>NOTE: I'm doing a schema vaidation of files, based on the validation I'm printing the &quot;Failed&quot; or &quot;Succeeded&quot; text in the output logs.</strong></p>
  <p><a href="https://i.stack.imgur.com/7C1Gq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7C1Gq.png" alt="enter image description here" /></a></p>