-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
34 lines (34 loc) · 891 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
33
34
pipeline {
agent any
environment {
CURRENT_BRANCH = "${BRANCH_NAME}"
}
stages {
stage('Build') {
steps {
sh 'printenv'
sh './build.sh'
}
}
stage('Run Tests') {
steps {
sh './test.sh'
}
}
stage('Collect Code Coverage') {
steps {
withSonarQubeEnv('SonarQube') {
sh './anal.sh'
}
step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'cov.xml', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
publishHTML (target: [
allowMissing: false,
keepAll: true,
reportDir: 'bld/cov',
reportFiles: 'index.html',
reportName: "Code Coverage"
])
}
}
}
}