Update Jenkinsfile with docker registry credentials

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-11-19 18:51:59 +01:00
parent 6e47f7ccf7
commit c5022e1491
1 changed files with 5 additions and 4 deletions

3
Jenkinsfile vendored
View File

@ -25,12 +25,13 @@ def buildImages = { ->
imageNamePy2 = "${imageNameBase}:py2-${gitCommit()}"
imageNamePy3 = "${imageNameBase}:py3-${gitCommit()}"
imageDindSSH = "${imageNameBase}:sshdind-${gitCommit()}"
withDockerRegistry(credentialsId:'dockerbuildbot-index.docker.io') {
buildImage(imageDindSSH, "-f tests/Dockerfile-ssh-dind .", "")
buildImage(imageNamePy2, "-f tests/Dockerfile --build-arg PYTHON_VERSION=2.7 .", "py2.7")
buildImage(imageNamePy3, "-f tests/Dockerfile --build-arg PYTHON_VERSION=3.7 .", "py3.7")
}
}
}
}
def getDockerVersions = { ->