title: run Grunt.js with Jenkins
body: <p>I've set up a Gruntfile with mocha testing and JSlint. This works fine if i just run grunt form the terminal.</p>
  
  <p>I want to run grunt from Jenkins!</p>
  
  <p>I set up a new job -> and made built to a shell script and included:</p>
  
  <pre><code>/usr/local/bin/grunt
  </code></pre>
  
  <p>Once I run the job the terminal output of Jenkins says:</p>
  
  <pre><code>[workspace] $ /bin/sh -xe /tmp/hudson8550584576040162032.sh
  + /usr/local/bin/grunt
  /usr/bin/env: node: No such file or directory
  Build step 'Execute shell' marked build as failure
  Finished: FAILURE
  </code></pre>
  
  <p>it seems it cant fine node binary!?! but node is installed and runs fine in the terminal!</p>
  
  <p>All my binaries (mocha, grunt, node) are in /usr/local/bin/</p>
  
  <p>Does anyone know what the issue is? Or maybe someone has a link to set up grunt.js with jenkins?</p>
  
  <p>Somebody got something?</p>
  
  <p>Thx</p>