forked from maping/java-maven-calculator-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
44 lines (42 loc) · 1.03 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
node {
def mvnHome = tool 'M3'
stage('Checkout Code') {
git 'https://github.com/maping/java-maven-calculator-web-app.git'
}
stage('JUnit Test') {
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' clean test"
} else {
bat(/"${mvnHome}\bin\mvn" clean test/)
}
}
stage('Integration Test') {
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' integration-test"
} else {
bat(/"${mvnHome}\bin\mvn" integration-test/)
}
}
/*
stage('Performance Test') {
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' cargo:start verify cargo:stop"
} else {
bat(/"${mvnHome}\bin\mvn" cargo:start verify cargo:stop/)
}
}
*/
stage('Performance Test') {
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' verify"
} else {
bat(/"${mvnHome}\bin\mvn" verify/)
}
}
stage('Deploy') {
timeout(time: 10, unit: 'MINUTES') {
input message: 'Deploy this web app to production ?'
}
echo 'Deploy...'
}
}