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