Владимир Томишинец 5 years ago
parent
commit
f73ecf5f2d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      jenkinsfile.get.and.sync.dict

+ 2 - 1
jenkinsfile.get.and.sync.dict

@@ -168,7 +168,8 @@ pipeline {
                                 container_operate(GOST_CLUSTER, [ 'sync' ])
                                 def log_dir = value.dir.replace("Files", "LOGS")
                                 log_dir = log_dir.replace("/", "\\")
-                                sh '''printf "#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$value.dir\n\
+                                def dir = value.dir
+                                sh '''printf "#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$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