Эх сурвалжийг харах

Обновление сборки с использованием helm repo

Tomishinets Vladimir 3 жил өмнө
parent
commit
b0fd700405
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      devK8s.Jenkinsfile

+ 3 - 2
devK8s.Jenkinsfile

@@ -16,6 +16,7 @@ pipeline {
     CONTEXT='provision@sdsys.office'
     DOCKER_IMAGE='web-registration/node'
     HELM_GIT_URL='ssh://git@git.sdsys.ru:8022/iru/k8s.git'
+    HELM_REPO='https://images.sdsys.ru/artifactory/helm/'
     APP_GIT_URL='ssh://git@git.sdsys.ru:8022/iru/node.git'
     JENKINS_MAIL='jenkins.dev@sdsys.ru'
     DOCKER_REGISTRY='images.sdsys.ru'
@@ -44,7 +45,7 @@ pipeline {
           gitOps.clone(HELM_GIT_URL)
           echo "Defining variables"
           HELM_DIR = dirOps.calculateDir(HELM_GIT_URL)
-          CHART_PATH = HELM_DIR + "/helm/" + DOCKER_IMAGE.split("/")[0]
+          CHART_PATH = "helm/" + DOCKER_IMAGE.split("/")[0]
           VALUES_FILE = HELM_DIR + "/helm/" + "dev-" + DOCKER_IMAGE.split("/")[0] + ".yaml"
           IMAGE_TO_PUSH = "${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}"
         }
@@ -77,7 +78,7 @@ pipeline {
           NAMESPACE = DOCKER_IMAGE.split("/")[0]
           try {
             echo "Update APP to ${IMAGE_TO_PUSH}"
-            k8sHelmOps.upgrade(CONTEXT, NAMESPACE, RELEASENAME, CHART_PATH, VALUES_FILE)
+            k8sHelmOps.upgrade(CONTEXT, NAMESPACE, RELEASENAME, CHART_PATH, VALUES_FILE, HELM_REPO)
             echo "Update success!!!"
           }
           catch(err) {