Create env file for tests and only archive binary
Some checks failed
Core Repos/ImageApi/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Cameron Cordes
2021-02-02 16:00:59 -05:00
parent 505cd2f2e3
commit 5f1bf58f35

14
Jenkinsfile vendored
View File

@@ -9,17 +9,21 @@ pipeline {
stages { stages {
stage('build') { stage('build') {
steps { steps {
sh 'echo $PWD' sh 'echo $PWD'
sh 'cargo build --release' sh 'cargo build --release'
archiveArtifacts artifacts: '**/target/release/**', fingerprint: true archiveArtifacts artifacts: '**/target/release/image-api' fingerprint: true
} }
} }
stage('test') { stage('test') {
steps { steps {
sh 'cargo test' sh 'echo "BASE_PATH=$PWD" > .env'
sh 'cargo test'
}
post {
sh 'rm -f .env'
} }
} }
} }
} }