Files
ImageApi/Jenkinsfile
Cameron Cordes b219663e0a
All checks were successful
Core Repos/ImageApi/pipeline/pr-master This commit looks good
Update CI to Rust 1.59
This will support Rust 2021 edition for Actix 4.
2022-03-01 20:44:51 -05:00

31 lines
487 B
Groovy

pipeline {
agent {
docker {
image 'rust:1.59'
args '-v "$PWD":/usr/src/image-api'
}
}
stages {
stage('build') {
steps {
sh 'cargo build --release'
archiveArtifacts artifacts: '**/target/release/image-api', fingerprint: true
}
}
stage('test') {
steps {
sh 'echo "BASE_PATH=$PWD" > .env'
sh 'cargo test'
}
post {
always {
sh 'rm -f .env'
}
}
}
}
}