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

[Jenkins] Retry push docker image on failure.

parent 5b051a84
No related branches found
No related tags found
No related merge requests found
......@@ -687,10 +687,12 @@ pipeline {
def clangImage = docker.build("ogs6/clang:latest", "-f Dockerfile.clang.full .")
withCredentials([usernamePassword(credentialsId: 'docker-hub-credentials',
passwordVariable: 'pw', usernameVariable: 'docker_user')]) {
sh 'echo $pw | docker login -u $docker_user --password-stdin'
sh 'echo $pw | docker login -u $docker_user --password-stdin'
retry(3) {
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