Files
zero_to_prod/Jenkinsfile
Philippe Zwietering d3d6d5fabc
Some checks failed
gitea/zero_to_prod/pipeline/head There was a failure building this commit
Added steps to all the parallel stages
2024-05-20 01:31:41 +02:00

46 lines
1.3 KiB
Groovy

pipeline {
agent { label 'linux' }
stages {
stage('Verify Cargo installation') {
steps {
sh 'cargo --version'
sh 'cargo fmt --version'
sh 'cargo clippy --version'
sh 'cargo tarpaulin --version'
}
}
// All the tests and static checks
stage('Parallel tasks') {
parallel {
stage('Test') {
steps {
echo 'Starting test step...'
sh 'cargo test'
}
}
stage('Check Formatting') {
steps {
echo 'Starting format check...'
sh 'cargo fmt --check'
}
}
stage('Clippy') {
steps {
echo 'Starting linter...'
sh 'cargo clippy -- -D warnings'
}
}
stage('Code coverage') {
steps {
echo 'Starting code coverage step...'
sh 'cargo tarpaulin --verbose --workspace'
}
}
}
}
// Build and deploy will occur here probably
}
}