Some checks failed
Core Repos/Rack/pipeline/head There was a failure building this commit
29 lines
425 B
Groovy
29 lines
425 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile { image 'rust:1.44.0-alpine' }
|
|
}
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
sh 'cargo build --release'
|
|
}
|
|
}
|
|
stage('lint') {
|
|
steps {
|
|
sh 'cargo clippy'
|
|
}
|
|
}
|
|
stage('test') {
|
|
steps {
|
|
sh 'cargo test'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'target/release/rack' fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
|