Files
ImageApi/Jenkinsfile
Cameron Cordes 7f534a18bf
Some checks failed
Core Repos/ImageApi/pipeline/head There was a failure building this commit
Core Repos/ImageApi/pipeline/pr-master There was a failure building this commit
Bump Jenkins build image to 1.51
2021-03-25 13:18:16 -04:00

31 lines
487 B
Groovy

pipeline {
agent {
docker {
image 'rust:1.51'
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'
}
}
}
}
}