Jenkins: Make sure Docker images are fresh
This commit is contained in:
parent
131d530d1a
commit
73cac9a4b2
1 changed files with 4 additions and 1 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue