Jenkins: Make sure Docker images are fresh

This commit is contained in:
Tobias Gruetzmacher 2019-07-14 15:19:57 +02:00
parent 131d530d1a
commit 73cac9a4b2

5
Jenkinsfile vendored
View file

@ -20,6 +20,7 @@ pys.each { py ->
stage("Prepare docker $py.name") { stage("Prepare docker $py.name") {
dir('dockerbuild') { dir('dockerbuild') {
deleteDir() deleteDir()
docker.image(py.docker).pull()
buildDockerfile(py.docker) buildDockerfile(py.docker)
image = docker.build("dosage-$py.docker") image = docker.build("dosage-$py.docker")
} }
@ -98,7 +99,9 @@ def windowsBuild() {
def windowsBuildCommands() { def windowsBuildCommands() {
deleteDir() deleteDir()
unstash 'bin' unstash 'bin'
docker.image('tobix/pywine').inside { def img = docker.image('tobix/pywine')
img.pull()
img.inside {
sh ''' sh '''
. /opt/mkuserwineprefix . /opt/mkuserwineprefix
tar xvf dist/dosage-*.tar.gz tar xvf dist/dosage-*.tar.gz