title: Sudo command not found (error in Jenkins execute shell)
body: <p>When I'm executing a unix command in jenkins job (through execute shell) with sudo, it throws error like this:</p>
  
  <pre><code>..../bin/sh -xe /tmp/hudson7505852448142784880.sh
  + sudo whoami 
  /tmp/hudson7505852448142784880.sh: line 2: sudo: command not found
  Build step 'Execute shell' marked build as failure 
  Finished: FAILURE
  </code></pre>