update jenkinsfile
Some checks failed
Test / Build occurred while executing withChecks step.

This commit is contained in:
bQUARKz 2026-04-08 07:36:12 +01:00
parent 03886cf6f0
commit 2713dd76e3
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8

View File

@ -10,45 +10,43 @@ pipeline {
steps {
withChecks(name: 'Test', includeStage: true) {
sh '''
set -eux
make ci
set -eux
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
stage('Coverage') {
stage('Reports') {
steps {
sh '''
set -eux
make 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]
]
)
script {
publishHTML(target: [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'target/llvm-cov/html',
reportFiles: 'index.html',
reportName: 'Rust Coverage HTML',
reportTitles: 'Coverage Report'
])
}
}
} // Cobertura
} // Reports
}
post {