mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-24 10:43:16 +08:00
Use a volume when running the unit tests instead of copying the source in the image
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -33,12 +33,12 @@ node('factory2'){
|
||||
}
|
||||
|
||||
stage('Build Docker Image') {
|
||||
onmyduffynode 'cd fm-orchestrator && docker build -t mbs/test -f Dockerfile-tests .'
|
||||
onmyduffynode 'cd fm-orchestrator && docker build -t mbs/test -f docker/Dockerfile-tests .'
|
||||
}
|
||||
|
||||
stage('Run Test Suite') {
|
||||
timeout(20) {
|
||||
onmyduffynode 'cd fm-orchestrator && docker run mbs/test'
|
||||
onmyduffynode 'cd fm-orchestrator && docker run -v $PWD:/src:Z mbs/test'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user