Minor fix in stage3 during push to dockerhub 30/12630/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 3 Oct 2022 14:16:56 +0000 (16:16 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Sun, 30 Oct 2022 11:14:20 +0000 (12:14 +0100)
Change-Id: I54fb53d2e58443fe0900c1e0111bebaa6daf9d16
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index 98acd29..c428e08 100644 (file)
@@ -606,7 +606,9 @@ EOF"""
 
                                 parallelSteps[module] = {
                                     dir("$module") {
-                                        sh "docker tag opensourcemano/${moduleName}:${moduleTag} opensourcemano/${moduleName}:${dockerTag}"
+                                        sh("docker pull ${INTERNAL_DOCKER_REGISTRY}opensourcemano/${moduleName}:${moduleTag}")
+                                        sh("""docker tag opensourcemano/${moduleName}:${moduleTag} \
+                                           opensourcemano/${moduleName}:${dockerTag}""")
                                         sh "docker push opensourcemano/${moduleName}:${dockerTag}"
                                     }
                                 }