| 
					
				 | 
			
			
				@@ -15,13 +15,15 @@ pipeline { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     DOCKER_CERT_PATH='/run/secrets/swarm' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     CLUSTER_NAME='iru-swarm1-open.infoclinica.ru' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     COMMAND='' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    branch='master' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   parameters { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    string( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/*    string( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       name: "branch", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       defaultValue: "master", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       description: "Which branch to use" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+*/     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     choice ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       choices: 'keygen\nrevoke', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       description: 'Whats the action?', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -210,5 +212,8 @@ pipeline { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            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}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    success{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      sh "wget http://dev-jenkins.sdsys.ru:8080/job/iru-bind/build?token=iru-bind -O -" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |