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
Some checks failed
Core Repos/ImageApi/pipeline/pr-master There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -11,15 +11,19 @@ pipeline {
|
|||||||
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 'echo "BASE_PATH=$PWD" > .env'
|
||||||
sh 'cargo test'
|
sh 'cargo test'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
sh 'rm -f .env'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user