title: grep in bash script + Jenkins
body: <p>I have a grep command that works in a bash script:</p>
  
  <pre><code>if grep 'stackoverflow' outFile.txt; then
   exit 1
  fi
  </code></pre>
  
  <p>This works fine when run on my host. When I call this from a Jenkins build step however, it exits 0 everytime, not seeing 'stackoverflow'. What is going wrong?</p>