changes in Jenkinsfile

Signed-off-by: Adrien Duermael <adrien@duermael.com>
This commit is contained in:
Adrien Duermael 2016-12-12 10:58:51 -08:00
parent f9dad1a6ec
commit 80381c95ec
1 changed files with 5 additions and 2 deletions

7
Jenkinsfile vendored
View File

@ -3,7 +3,10 @@ wrappedNode(label: 'linux && x86_64') {
stage "checkout"
checkout scm
stage "test"
sh "docker build -t docs `pwd`"
sh "docker build -t tests `pwd`/tests"
sh "docker run --rm -v `pwd`:/docs tests"
sh "docker rmi tests"
sh "docker run -v /usr/src/app/allvbuild --name docs docs /bin/true"
sh "docker run --rm --volumes-from docs -v `pwd`:/docs tests"
sh "docker rm -fv docs"
sh "docker rmi docs tests"
}