forked from vaibhav7797/SaiJavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsfile-clover-1
29 lines (29 loc) · 929 Bytes
/
jenkinsfile-clover-1
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
pipeline {
agent {
label '!windows' // sh not generally available on Windows
}
stages {
stage('Checkout') {
steps {
git 'https://github.com/vaibhav7797/SaiJavaCode.git'
}
}
stage('Test') {
steps {
sh 'mvn --batch-mode clean clover:setup test clover:aggregate clover:clover'
}
}
stage('Report') {
steps {
clover(cloverReportDir: 'target/site', cloverReportFileName: 'clover.xml',
// optional, default is: method=70, conditional=80, statement=80
healthyTarget: [methodCoverage: 70, conditionalCoverage: 80, statementCoverage: 80],
// optional, default is none
unhealthyTarget: [methodCoverage: 50, conditionalCoverage: 50, statementCoverage: 50],
// optional, default is none
failingTarget: [methodCoverage: 0, conditionalCoverage: 0, statementCoverage: 0]
)
}
}
}
}