| 
														
															@@ -15,13 +15,15 @@ pipeline { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     DOCKER_CERT_PATH='/run/secrets/swarm' 
														 | 
														
														 | 
														
															     DOCKER_CERT_PATH='/run/secrets/swarm' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     CLUSTER_NAME='iru-swarm1-open.infoclinica.ru' 
														 | 
														
														 | 
														
															     CLUSTER_NAME='iru-swarm1-open.infoclinica.ru' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     COMMAND='' 
														 | 
														
														 | 
														
															     COMMAND='' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    branch='master' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   parameters { 
														 | 
														
														 | 
														
															   parameters { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    string( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+/*    string( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       name: "branch", 
														 | 
														
														 | 
														
															       name: "branch", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       defaultValue: "master", 
														 | 
														
														 | 
														
															       defaultValue: "master", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       description: "Which branch to use" 
														 | 
														
														 | 
														
															       description: "Which branch to use" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ) 
														 | 
														
														 | 
														
															     ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+*/     
														 | 
													
												
											
												
													
														| 
														 | 
														
															     choice ( 
														 | 
														
														 | 
														
															     choice ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       choices: 'keygen\nrevoke', 
														 | 
														
														 | 
														
															       choices: 'keygen\nrevoke', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       description: 'Whats the action?', 
														 | 
														
														 | 
														
															       description: 'Whats the action?', 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -210,5 +212,8 @@ pipeline { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															            to: "${client_mail}", 
														 | 
														
														 | 
														
															            to: "${client_mail}", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															            body: "<b>ATTENTION!!!</b> <b><br> Jenkins job aborted.\n\n <b><br> The CNAME ${key_name} is already exists!\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}" 
														 | 
														
														 | 
														
															            body: "<b>ATTENTION!!!</b> <b><br> Jenkins job aborted.\n\n <b><br> The CNAME ${key_name} is already exists!\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    success{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      sh "wget http://dev-jenkins.sdsys.ru:8080/job/iru-bind/build?token=iru-bind -O -" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |