forked from mylandmarktechs/maven-web-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins-paypal
31 lines (28 loc) · 960 Bytes
/
jenkins-paypal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
node {
def mavenHome = tool name: 'maven3.8.4'
stage ('checkout') {
git credentialsId: 'gitcredentials', url: 'https://github.com/Eleven-Tech-Solutions/maven-web-apps'
}
stage ('build') {
sh "${mavenHome}/bin/mvn clean package"
}
stage ('codequality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage ('Upload2nexus') {
sh "${mavenHome}/bin/mvn deploy"
}
stage ('deploy2UAT') {
deploy adapters: [tomcat9(credentialsId: 'tomcatcredentials', path: '', url: 'http://15.222.251.196:8080/')], contextPath: null, war: 'target/*.war'
}
stage ('slack notification') {
}
stage ('Approval') {
timeout(time:8, unit:'HOURS') {
input message: 'Please review and approve'
}
}
stage ('deploy2UAT') {
deploy adapters: [tomcat9(credentialsId: 'tomcatcredentials', path: '', url: 'http://15.222.251.196:8080/')], contextPath: null, war: 'target/*.war'
}
}