forked from JennyMallipudi/boxfuse-sample-java-war-hello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkins-e
23 lines (21 loc) · 806 Bytes
/
Jenkins-e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline {
agent any
stag.es{
stage("GIT checkout"){
steps{
git credentialsId: 'e7bca83f-c29a-482c-91b4-e038c2277210', url: 'https://github.com/RAJANI9/boxfuse-sample-java-war-hello/'
}
}
stage("build"){
steps{
sh "mvn clean package"
sh "mv target/*.war target/myweb.war"
}
}
stage("depoly"){
steps{
deploy adapters: [tomcat9(credentialsId: 'f7a2c7a4-9c67-49c4-8d5e-2c775e33c9c9', path: '', url: 'http://65.0.125.40:8080/')], contextPath: 'myweb', war: 'target/*.war'
}
}
}
}