Skip to content
Snippets Groups Projects
Commit dc7449af authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Fix Docker Hub credentials.

parent f8749822
No related branches found
No related tags found
No related merge requests found
...@@ -537,10 +537,12 @@ pipeline { ...@@ -537,10 +537,12 @@ pipeline {
def gccImage = docker.build("ogs6/gcc:latest", "-f Dockerfile.gcc.full .") def gccImage = docker.build("ogs6/gcc:latest", "-f Dockerfile.gcc.full .")
def gccGuiImage = docker.build("ogs6/gcc:gui", "-f Dockerfile.gcc.gui .") def gccGuiImage = docker.build("ogs6/gcc:gui", "-f Dockerfile.gcc.gui .")
def clangImage = docker.build("ogs6/clang:latest", "-f Dockerfile.clang.full .") def clangImage = docker.build("ogs6/clang:latest", "-f Dockerfile.clang.full .")
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') { withCredentials([usernamePassword(credentialsId: 'docker-hub-credentials',
gccImage.push() passwordVariable: 'pw', usernameVariable: 'docker_user')]) {
gccGuiImage.push() sh 'echo $pw | docker login -u $docker_user --password-stdin'
clangImage.push() gccImage.push()
gccGuiImage.push()
clangImage.push()
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment