This commit is contained in:
1 parent
d4572f2aa9
commit
87674b9061
1 file changed
+28
Vendored
+28
@@ -0,0 +1,28 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user