title: nohup: failed to run command `sh`: No such file or directory
body: <p>I have the following pipeline script in Jenkins:</p>
  
  <pre><code>node {
  
    withMaven(globalMavenSettingsFilePath: '/my/path/apache-maven-3.2.2/conf/settings.xml', jdk: 'JDK 1.8.0u92', maven: 'apache-maven-3.2.2', mavenSettingsFilePath: '/my/path/apache-maven-3.2.2/conf/settings.xml') {
  
      sh '/my/path/apache-maven-3.2.2/bin/mvn clean install'
    }
  }
  </code></pre>
  
  <p>For this, I am getting:</p>
  
  <pre><code>nohup: failed to run command `sh`: No such file or directory
  ERROR: script returned exit code -2
  </code></pre>
  
  <p>Why is this?</p>
  
  <p>I am sure that the path to my Maven installation is correct. When I run a job without the pipeline, Maven builds with no errors and I can see that it uses the same path.</p>