|
@@ -4,7 +4,7 @@ pipeline {
|
|
|
}
|
|
|
environment {
|
|
|
DOCKER_REGISTRY='dev-registry.infoclinica.ru:5000'
|
|
|
- DOCKER_IMAGE='node'
|
|
|
+ DOCKER_IMAGE='node-lab'
|
|
|
SWARM_GIT_URL='ssh://git@git.sdsys.ru:8022/iru/stack-deploy.git'
|
|
|
SWARM_GIT_NAME='stack-deploy'
|
|
|
JENKINS_MAIL='jenkins@sdsys.ru'
|
|
@@ -17,6 +17,11 @@ pipeline {
|
|
|
defaultValue: "prod",
|
|
|
description: "Repository to build and/or deploy from."
|
|
|
)
|
|
|
+ string(
|
|
|
+ name: "version",
|
|
|
+ defaultValue: "16.1",
|
|
|
+ description: "Witch version to build and/or deploy (16.1/17.1)."
|
|
|
+ )
|
|
|
string(
|
|
|
name: "cluster",
|
|
|
defaultValue: "dev",
|
|
@@ -24,7 +29,7 @@ pipeline {
|
|
|
)
|
|
|
string(
|
|
|
name: "service_update",
|
|
|
- defaultValue: "info_node info_node-api",
|
|
|
+ defaultValue: "lab_node lab_node-api",
|
|
|
description: "Services to update."
|
|
|
)
|
|
|
string(
|
|
@@ -37,7 +42,7 @@ pipeline {
|
|
|
stage("Build") {
|
|
|
steps {
|
|
|
echo "Building ${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} ."
|
|
|
+ sh "docker build --build-arg repo=${repo} version=${version} --no-cache -t ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ."
|
|
|
}
|
|
|
}
|
|
|
stage("Publish") {
|