Sfoglia il codice sorgente

New image tagging work in progress

Vadim Surkov 6 anni fa
parent
commit
5e1fcaad18
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -41,7 +41,7 @@ pipeline {
         sh "docker build --build-arg repo=${repo} --no-cache -t ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ."
         sh "docker build --build-arg repo=${repo} --no-cache -t ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ."
         script {
         script {
            NEWTAG = sh script: "docker run --rm ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} rpm -q --qf %{VERSION}-%{RELEASE} web-registry-admin 2> /dev/null", returnStdout: true
            NEWTAG = sh script: "docker run --rm ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} rpm -q --qf %{VERSION}-%{RELEASE} web-registry-admin 2> /dev/null", returnStdout: true
-           NEWTAG = NEWTAG + BUILD_NUMBER
+           NEWTAG = NEWTAG + "_" + BUILD_NUMBER
            echo "NEWTAG is $NEWTAG"
            echo "NEWTAG is $NEWTAG"
         }
         }
       }
       }