| 
														
															@@ -13,7 +13,7 @@ pipeline { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     DEV_REGISTRY='dev-registry.infoclinica.ru:5000' 
														 | 
														
														 | 
														
															     DEV_REGISTRY='dev-registry.infoclinica.ru:5000' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     PROD_REGISTRY='registry.infoclinica.ru:5000' 
														 | 
														
														 | 
														
															     PROD_REGISTRY='registry.infoclinica.ru:5000' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     DOCKER_CERT_PATH='/run/secrets/swarm' 
														 | 
														
														 | 
														
															     DOCKER_CERT_PATH='/run/secrets/swarm' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    DOCKER_HOST='' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    DHOST='' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     DOCKER_REGISTRY='' 
														 | 
														
														 | 
														
															     DOCKER_REGISTRY='' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     NEWTAG='' 
														 | 
														
														 | 
														
															     NEWTAG='' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -46,11 +46,11 @@ pipeline { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           switch (cluster) { 
														 | 
														
														 | 
														
															           switch (cluster) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              case 'prod': 
														 | 
														
														 | 
														
															              case 'prod': 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 DOCKER_REGISTRY=PROD_REGISTRY 
														 | 
														
														 | 
														
															                 DOCKER_REGISTRY=PROD_REGISTRY 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                DOCKER_HOST="tcp://${CLUSTER_PROD}:2376 DOCKER_TLS_VERIFY=1" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                DHOST="tcp://${CLUSTER_PROD}:2376 DOCKER_TLS_VERIFY=1" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 break 
														 | 
														
														 | 
														
															                 break 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              case 'dev': 
														 | 
														
														 | 
														
															              case 'dev': 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 DOCKER_REGISTRY=DEV_REGISTRY 
														 | 
														
														 | 
														
															                 DOCKER_REGISTRY=DEV_REGISTRY 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                DOCKER_HOST="tcp://${CLUSTER_DEV}:2376 DOCKER_TLS_VERIFY=1" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                DHOST="tcp://${CLUSTER_DEV}:2376 DOCKER_TLS_VERIFY=1" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 break 
														 | 
														
														 | 
														
															                 break 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              default: 
														 | 
														
														 | 
														
															              default: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 currentBuild.result = 'ABORTED' 
														 | 
														
														 | 
														
															                 currentBuild.result = 'ABORTED' 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -75,10 +75,10 @@ pipeline { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     stage("Update") { 
														 | 
														
														 | 
														
															     stage("Update") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       when { expression { service_update != "" } } 
														 | 
														
														 | 
														
															       when { expression { service_update != "" } } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      environment { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          DOCKER_HOST="${DHOST}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       steps { 
														 | 
														
														 | 
														
															       steps { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        environment { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          DOCKER_HOST="${DOCKER_HOST}" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         script { 
														 | 
														
														 | 
														
															         script { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           for (String item : service_update.split()) { 
														 | 
														
														 | 
														
															           for (String item : service_update.split()) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             try{ 
														 | 
														
														 | 
														
															             try{ 
														 |