Jenkins CI Setup (#1)
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
Fail on lint warnings Install clippy in setup Create initial Jenkinsfile Co-authored-by: Cameron Cordes <cameronc.dev@gmail.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
33
Jenkinsfile
vendored
Normal file
33
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
docker { image 'rust:1.44.0-alpine' }
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('setup') {
|
||||||
|
steps {
|
||||||
|
sh 'rustup component add clippy'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build') {
|
||||||
|
steps {
|
||||||
|
sh 'cargo build --release'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('lint') {
|
||||||
|
steps {
|
||||||
|
sh 'cargo clippy -- -D warnings'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('test') {
|
||||||
|
steps {
|
||||||
|
sh 'cargo test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
archiveArtifacts artifacts: 'target/release/rack', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user