forked from LandmakTechnology/tesla-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsfile
32 lines (25 loc) · 788 Bytes
/
jenkinsfile
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
32
node {
def mavenHome = tool name: "3.8.6"
stage('1codeclone'){
git "https://github.com/jorge1j/tesla-app"
}
stage('2test$build'){
sh "${mavenHome}/bin/mvn clean package"
}
stage('3codequality'){
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4uploadArtifact'){
sh "${mavenHome}/bin/mvn deploy"
}
/*
stage('5deploy2UAT'){
sh "sleep 40"
deploy adapters: [tomcat9(credentialsId: 'tomcatcredential', path: '', url: 'https://44.210.117.44')], contextPath: null, war: 'target/*war'
*/
}
stage('Approval'){
timeout(time:8, unit: 'HOURS' ) {
input message: 'Please verify and approve'
}
}