title: How to fail the jenkins job based on the condition?
body: <p>In my scenario i am using <strong>Jenkins freestyle job</strong> to clone the git repository, after that it should parse the keywords like (Error, ERROR, error) in <strong>log files</strong> of particular path in my Workspace, if the condition finds the error the Jenkins should fail the job <strong>else</strong> it should proceed further steps.</p>
  
  <p>I tried this command to parse log files</p>
  
  <p>egrep -rqw 'ERROR|Error|error'  $WORKSPACE</p>