title: when executing SSH command from jenkins nvm not found
body: <p>I am working on an express app and trying to deploy it on ec2 with Jenkins.
  I used the terminal to install nvm and it's working fine.</p>
  
  <p>In Jenkins, I used Publish Over SSH Plugin to upload the build to ec2 with the same <strong>user</strong> but it fails on npm install command.</p>
  
  <p>I checked .bashrc and verified the nvm installation.</p>
  
  <p>When I run printenv command from the shell it shows nvm in PATH</p>
  
  <blockquote>
    <p>PATH=/home/ubuntu/.nvm/versions/node/v12.13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin</p>
  </blockquote>
  
  <p>But when I run it from Jenkins job it is not there</p>
  
  <blockquote>
    <p>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    _=/usr/bin/ </p>
  </blockquote>