This commit is contained in:
parent
03886cf6f0
commit
2713dd76e3
62
files/config/Jenkinsfile
vendored
62
files/config/Jenkinsfile
vendored
@ -10,45 +10,43 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
withChecks(name: 'Test', includeStage: true) {
|
withChecks(name: 'Test', includeStage: true) {
|
||||||
sh '''
|
sh '''
|
||||||
set -eux
|
set -eux
|
||||||
make ci
|
make ci cobertura
|
||||||
'''
|
'''
|
||||||
|
recordCoverage(
|
||||||
|
tools: [[parser: 'COBERTURA', pattern: 'target/llvm-cov/cobertura.xml']],
|
||||||
|
sourceCodeRetention: 'LAST_BUILD',
|
||||||
|
enabledForFailure: true,
|
||||||
|
failOnError: true,
|
||||||
|
checksAnnotationScope: 'MODIFIED_LINES',
|
||||||
|
id: 'rust-coverage',
|
||||||
|
name: 'Rust Coverage',
|
||||||
|
checksName: 'Rust Coverage',
|
||||||
|
qualityGates: [
|
||||||
|
[metric: 'LINE', baseline: 'MODIFIED_LINES', threshold: 20.0],
|
||||||
|
[metric: 'LINE', baseline: 'PROJECT', threshold: 20.0],
|
||||||
|
[metric: 'BRANCH', baseline: 'PROJECT', threshold: 20.0]
|
||||||
|
]
|
||||||
|
)
|
||||||
}
|
}
|
||||||
publishHTML(target: [
|
|
||||||
allowMissing: false,
|
|
||||||
alwaysLinkToLastBuild: true,
|
|
||||||
keepAll: true,
|
|
||||||
reportDir: 'target/llvm-cov/html',
|
|
||||||
reportFiles: 'index.html',
|
|
||||||
reportName: 'Rust Coverage HTML',
|
|
||||||
reportTitles: 'Coverage Report'
|
|
||||||
])
|
|
||||||
}
|
}
|
||||||
} // Test
|
} // Test
|
||||||
|
|
||||||
stage('Coverage') {
|
stage('Reports') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
script {
|
||||||
set -eux
|
publishHTML(target: [
|
||||||
make cobertura
|
allowMissing: false,
|
||||||
'''
|
alwaysLinkToLastBuild: true,
|
||||||
recordCoverage(
|
keepAll: true,
|
||||||
tools: [[parser: 'COBERTURA', pattern: 'target/llvm-cov/cobertura.xml']],
|
reportDir: 'target/llvm-cov/html',
|
||||||
sourceCodeRetention: 'LAST_BUILD',
|
reportFiles: 'index.html',
|
||||||
enabledForFailure: true,
|
reportName: 'Rust Coverage HTML',
|
||||||
failOnError: true,
|
reportTitles: 'Coverage Report'
|
||||||
checksAnnotationScope: 'MODIFIED_LINES',
|
])
|
||||||
id: 'rust-coverage',
|
}
|
||||||
name: 'Rust Coverage',
|
|
||||||
checksName: 'Rust Coverage',
|
|
||||||
qualityGates: [
|
|
||||||
[metric: 'LINE', baseline: 'MODIFIED_LINES', threshold: 20.0],
|
|
||||||
[metric: 'LINE', baseline: 'PROJECT', threshold: 20.0],
|
|
||||||
[metric: 'BRANCH', baseline: 'PROJECT', threshold: 20.0]
|
|
||||||
]
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
} // Cobertura
|
} // Reports
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user