Create initial Jenkinsfile
Some checks failed
Core Repos/Rack/pipeline/head There was a failure building this commit
Some checks failed
Core Repos/Rack/pipeline/head There was a failure building this commit
This commit is contained in:
28
Jenkinsfile
vendored
Normal file
28
Jenkinsfile
vendored
Normal file
@@ -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