Skip to content

Commit

Permalink
Create Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 authored Dec 9, 2021
1 parent d486c0e commit e206cf7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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]'
}

}

0 comments on commit e206cf7

Please sign in to comment.