title: Can I fail a build based on the outcome of a SSH Task?
body: <p>I was wondering if I could use bamboo's SSH task to run a script (this kicks off a small java message injector).</p>
  
  <p>Then grep the logs for ERRORS. If any ERROR is present I would like to fail the build.</p>
  
  <p>Something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/tjqAX.png" alt="enter image description here"></p>