|  | @@ -151,7 +151,7 @@ pipeline {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -*//*        stage ("ALFA dictionaries") {
 | 
	
		
			
				|  |  | +*/       stage ("ALFA dictionaries") {
 | 
	
		
			
				|  |  |              steps {
 | 
	
		
			
				|  |  |                  script {
 | 
	
		
			
				|  |  |                      ALFANAMES.each { key, value ->
 | 
	
	
		
			
				|  | @@ -168,7 +168,12 @@ pipeline {
 | 
	
		
			
				|  |  |                                  container_operate(GOST_CLUSTER, [ 'sync' ])
 | 
	
		
			
				|  |  |                                  def log_dir = value.dir.replace("Files", "LOGS")
 | 
	
		
			
				|  |  |                                  log_dir = log_dir.replace("/", "\\")
 | 
	
		
			
				|  |  | -                                sh """export DOCKER_HOST=tcp://$GOST_CLUSTER:2376 DOCKER_TLS_VERIFY=1
 | 
	
		
			
				|  |  | +                                sh """printf '#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$value.dir\n\
 | 
	
		
			
				|  |  | +                                      cat \$(ls -1t AlfaLabDict_*.xml | head -n1) > AlfaLabDict.xml\n\
 | 
	
		
			
				|  |  | +                                      exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/syncserver/SyncServer.exe" "$@"' > entrypoint.sh
 | 
	
		
			
				|  |  | +                                      chmod +x entrypoint.sh
 | 
	
		
			
				|  |  | +                                      cdt entrypoint.sh"""
 | 
	
		
			
				|  |  | +/*                                sh """export DOCKER_HOST=tcp://$GOST_CLUSTER:2376 DOCKER_TLS_VERIFY=1
 | 
	
		
			
				|  |  |                                        docker create -i --name sync \
 | 
	
		
			
				|  |  |                                          -v analis-wineservice_analis_Files_netapp:/root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/ \
 | 
	
		
			
				|  |  |                                          --network=labnetwork --entrypoint='' \${SYNC_IMAGE} /bin/bash \
 | 
	
	
		
			
				|  | @@ -180,13 +185,13 @@ pipeline {
 | 
	
		
			
				|  |  |                                        docker start -i sync
 | 
	
		
			
				|  |  |                                        docker rm sync
 | 
	
		
			
				|  |  |                                     """
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | +*/                            }
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -*//*        stage ("Gemotest dictionaries") {
 | 
	
		
			
				|  |  | +/*        stage ("Gemotest dictionaries") {
 | 
	
		
			
				|  |  |              steps {
 | 
	
		
			
				|  |  |                  script {
 | 
	
		
			
				|  |  |                      echo "Get dictionaries for Gemotest"
 | 
	
	
		
			
				|  | @@ -196,15 +201,13 @@ pipeline {
 | 
	
		
			
				|  |  |                              echo "Syncing dictionaries for Gemotest"
 | 
	
		
			
				|  |  |                              container_operate(GOST_CLUSTER, [ 'sync' ])
 | 
	
		
			
				|  |  |                              def log_dir = GEMOTEST.dir.replace("Files", "LOGS")
 | 
	
		
			
				|  |  | -                            syncServer(log_dir, CMD.idtask, SYNC_SERVER_IMAGE, GOST_CLUSTER)
 | 
	
		
			
				|  |  | -                            log_dir = log_dir.replace("/", "\\")
 | 
	
		
			
				|  |  | -                            sync(log_dir, GEMOTEST.idtask, SYNC_IMAGE, GOST_CLUSTER)
 | 
	
		
			
				|  |  | +                            syncServer(log_dir, GEMOTEST.idtask, SYNC_SERVER_IMAGE, GOST_CLUSTER)
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -*/        stage ("CMD dictionaries") {
 | 
	
		
			
				|  |  | +*//*        stage ("CMD dictionaries") {
 | 
	
		
			
				|  |  |              steps {
 | 
	
		
			
				|  |  |                  script {
 | 
	
		
			
				|  |  |                      echo "Get dictionaries for CMD"
 | 
	
	
		
			
				|  | @@ -220,7 +223,7 @@ pipeline {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +*/    }
 | 
	
		
			
				|  |  |    
 | 
	
		
			
				|  |  |      post {
 | 
	
		
			
				|  |  |          always {
 |