title: Jenkins - mvn not found
body: <p>Hello I'm new to jenkins and getting this issue. I'm using jenkins in windows azure</p>
  
  <blockquote>
    <ul>
    <li>mvn clean package /var/lib/jenkins/workspace/vcc@tmp/durable-b5407f14/script.sh: 2:
    /var/lib/jenkins/workspace/vcc@tmp/durable-b5407f14/script.sh: mvn:
    not found.</li>
    </ul>
  </blockquote>
  
  <p>Jenkinsfiles: </p>
  
  <pre><code>node {
     stage('init') {
        checkout scm
     }
     stage('build') {
        sh '''
           mvn clean package
           cd target
           cp ../src/main/resources/web.config web.config
           cp todo-app-java-on-azure-1.0-SNAPSHOT.jar app.jar 
           zip todo.zip app.jar web.config
        '''
     }
     stage('deploy') {
        azureWebAppPublish azureCredentialsId: env.AZURE_CRED_ID,
        resourceGroup: env.RES_GROUP, appName: env.WEB_APP, filePath: "**/todo.zip"
     }
  }
  </code></pre>
  
  <p>can any body help me how can I resolve this mvn issue.</p>
  
  <p>P.S I'm following this tutorial
  <a href="https://docs.microsoft.com/en-us/azure/jenkins/tutorial-jenkins-deploy-web-app-azure-app-service" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/jenkins/tutorial-jenkins-deploy-web-app-azure-app-service</a></p>