Skip to content

Commit 2601142

Browse files
author
aiordache
committed
Update Jenkinsfile with docker registry credentials
Signed-off-by: aiordache <[email protected]>
1 parent 5b471d4 commit 2601142

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ def buildImages = { ->
2525
imageNamePy2 = "${imageNameBase}:py2-${gitCommit()}"
2626
imageNamePy3 = "${imageNameBase}:py3-${gitCommit()}"
2727
imageDindSSH = "${imageNameBase}:sshdind-${gitCommit()}"
28-
29-
buildImage(imageDindSSH, "-f tests/Dockerfile-ssh-dind .", "")
30-
buildImage(imageNamePy2, "-f tests/Dockerfile --build-arg PYTHON_VERSION=2.7 .", "py2.7")
31-
buildImage(imageNamePy3, "-f tests/Dockerfile --build-arg PYTHON_VERSION=3.7 .", "py3.7")
28+
withDockerRegistry(credentialsId:'dockerbuildbot-index.docker.io') {
29+
buildImage(imageDindSSH, "-f tests/Dockerfile-ssh-dind .", "")
30+
buildImage(imageNamePy2, "-f tests/Dockerfile --build-arg PYTHON_VERSION=2.7 .", "py2.7")
31+
buildImage(imageNamePy3, "-f tests/Dockerfile --build-arg PYTHON_VERSION=3.7 .", "py3.7")
32+
}
3233
}
3334
}
3435
}

0 commit comments

Comments
 (0)