Skip to content

Commit e206cf7

Browse files
authored
Create Jenkinsfile
1 parent d486c0e commit e206cf7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Jenkinsfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
node{
2+
def MHD = tool name: "maven3.8.4"
3+
stage('code'){
4+
git branch: 'development', url: 'https://github.com/LandmakTechnology/web-app'
5+
}
6+
stage('BUILD'){
7+
sh "${MHD}/bin/mvn clean package"
8+
9+
}
10+
stage('deploy'){
11+
sshagent(['tomcat']) {
12+
//sh "scp -o StrictHostKeyChecking=no target/*war [email protected]:/opt/tomcat9/webapps/"
13+
}
14+
}
15+
stage('email'){
16+
emailext body: '''Build is over
17+
18+
Landmark
19+
437212483''', recipientProviders: [developers(), requestor()], subject: 'Build', to: '[email protected]'
20+
}
21+
22+
}

0 commit comments

Comments
 (0)