update jenkinsfile
Some checks failed
Rust Verify / Verify occurred while executing withChecks step.

This commit is contained in:
bQUARKz 2026-04-07 09:36:46 +01:00
parent b07f2f377a
commit d46f447273
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8

View File

@ -2,31 +2,40 @@ pipeline {
agent any
stages {
stage('Setup') {
stage('Verify') {
steps {
giteaStatus status: 'PENDING', context: 'ci/jenkins'
withChecks(name: 'Rust Verify', includeStage: true) {
sh '''
set -e
rustup component add clippy rustfmt
'''
}
}
stage('CI') {
steps {
sh '''
set -e
make ci
rustup component add clippy rustfmt llvm-tools-preview
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
'''
}
}
}
post {
success {
giteaStatus status: 'SUCCESS', context: 'ci/jenkins'
stage('Test + Coverage') {
steps {
withChecks(name: 'Rust Test', includeStage: true) {
sh '''
set -e
cargo install cargo-llvm-cov --locked || true
cargo llvm-cov --all-features --workspace --cobertura --output-path coverage.xml
'''
}
}
}
stage('Reports') {
steps {
recordCoverage(
tools: [[parser: 'COBERTURA', pattern: 'coverage.xml']],
id: 'rust-coverage',
name: 'Rust Coverage',
sourceCodeRetention: 'EVERY_BUILD'
)
}
failure {
giteaStatus status: 'FAILURE', context: 'ci/jenkins'
}
}
}