-
Notifications
You must be signed in to change notification settings - Fork 10
/
Jenkinsfile
30 lines (28 loc) · 1 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
pipeline {
agent { docker { image 'node:14' } }
stages {
stage('build') {
steps {
sh 'npm install'
}
}
stage('test') {
steps {
sh 'npm test'
step([
$class: 'CloverPublisher',
cloverReportDir: 'coverage',
cloverReportFileName: 'clover.xml',
healthyTarget: [methodCoverage: 85, conditionalCoverage: 85, statementCoverage: 85], // optional, default is: method=70, conditional=80, statement=80
unhealthyTarget: [methodCoverage: 70, conditionalCoverage: 70, statementCoverage: 70], // optional, default is none
failingTarget: [methodCoverage: 50, conditionalCoverage: 50, statementCoverage: 50] // optional, default is none
])
}
post {
always {
junit 'coverage/junit.xml'
}
}
}
}
}