node{ def MHD = tool name: "maven3.8.4" stage('code'){ git branch: 'development', url: 'https://github.com/LandmakTechnology/web-app' } stage('BUILD'){ sh "${MHD}/bin/mvn clean package" } /* stage('deploy'){ sshagent(['tomcat']) { sh "scp -o StrictHostKeyChecking=no target/*war [email protected]:/opt/tomcat9/webapps/" } } stage('email'){ emailext body: '''Build is over Landmark 437212483''', recipientProviders: [developers(), requestor()], subject: 'Build', to: '[email protected]' } */ }