|
@@ -21,12 +21,12 @@ def HELIXNAMES = [
|
|
|
clinicTemp: [ id: '990010000013661', dir: 'HelixMSK/Files/Dictionaries/Temp', user: 'MskTemp', pass: 'Hoch9is%' ],
|
|
|
HelixEKB: [ id: '990010000000044', idtask: '990010000000019', dir: 'HelixEKB/Files/Dictionaries', user: 'TestDictEkb', pass: 'Fp5LMnKW' ],
|
|
|
clinicBZ_EKB: [ id: '990010000013445', dir: 'HelixEKB/Files/Dictionaries/BZ_Ekb', user: 'EkbBudZdorov', pass: '0Qk&8Ko%' ],
|
|
|
-*/ HelixNSK: [ id: '990010000000045', idtask: '990010000000022', dir: 'HelixNSK/Files/Dictionaries', user: 'TestDictNor', pass: 'jq9xd6sY' ],
|
|
|
-/* HelixPNZ: [ id: '990010000000046', idtask: '990010000000021', dir: 'HelixPNZ/Files/Dictionaries', user: 'TestDictPnz', pass: 'IgK~66Ff' ],
|
|
|
+ HelixNSK: [ id: '990010000000045', idtask: '990010000000022', dir: 'HelixNSK/Files/Dictionaries', user: 'TestDictNor', pass: 'jq9xd6sY' ],
|
|
|
+*/ HelixPNZ: [ id: '990010000000046', idtask: '990010000000021', dir: 'HelixPNZ/Files/Dictionaries', user: 'TestDictPnz', pass: 'IgK~66Ff' ],
|
|
|
clinicDavinchigrup: [ id: '990010000013845', dir: 'HelixPNZ/Files/Dictionaries/Davinchigrup', user: 'MskDaVinchi', pass: 'uGh9re)u' ],
|
|
|
clinicMotherhood: [ id: '990010000013673', dir: 'HelixPNZ/Files/Dictionaries/Materinstvoidetstvo', user: 'MskMaterinstvoIDetst', pass: 'ZCPuzbw8' ],
|
|
|
clinicSadko: [ id: '990010000013846', dir: 'HelixPNZ/Files/Dictionaries/Sadko', user: 'MskSadko', pass: 'VOTdPC3A' ],
|
|
|
- HelixHBR: [ id: '990010000000047', idtask: '990010000000018', dir: 'HelixHBR/Files/Dictionaries', user: 'TestDictHab', pass: 'idTf4WkE' ],
|
|
|
+/* HelixHBR: [ id: '990010000000047', idtask: '990010000000018', dir: 'HelixHBR/Files/Dictionaries', user: 'TestDictHab', pass: 'idTf4WkE' ],
|
|
|
HelixSPB: [ id: '990010000000013', idtask: '990010000000013', dir: 'HelixSPB/Files/Dictionaries', user: 'TestDictSpb', pass: '8686Giq0' ],
|
|
|
clinicBaltMed: [ id: '990010000002030', dir: 'HelixSPB/Files/Dictionaries/BaltMed', user: 'SpbMServ', pass: '1tMi8jRz' ],
|
|
|
clinicONA: [ id: '990010000004936', dir: 'HelixSPB/Files/Dictionaries/ONA', user: 'ona', pass: 'svn2CD3KkL' ],
|
|
@@ -87,24 +87,28 @@ pipeline {
|
|
|
TAG = sh (script: "cat ${WORKSPACE}/stack-deploy/tags/lab/analis-wineservice.build-version" , returnStdout: true)
|
|
|
container_operate(GOST_CLUSTER)
|
|
|
container_operate(OPEN_CLUSTER)
|
|
|
+ sh """export DOCKER_HOST=tcp://$GOST_CLUSTER:2376 DOCKER_TLS_VERIFY=1
|
|
|
+ docker pull ${SYNC_SERVER_IMAGE}
|
|
|
+ """
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-/* stage ("HELIX dictionaries") {
|
|
|
+ stage ("HELIX dictionaries") {
|
|
|
steps {
|
|
|
script {
|
|
|
HELIXNAMES.each { key, value ->
|
|
|
echo "Get dictionaries for $key"
|
|
|
get_ftp(value.dir, value.user, value.pass, FTP.HELIX, OPEN_CLUSTER, WGET_IMAGE)
|
|
|
}
|
|
|
- sh """export DOCKER_HOST=tcp://$GOST_CLUSTER:2376 DOCKER_TLS_VERIFY=1
|
|
|
- docker pull ${SYNC_IMAGE}
|
|
|
+ sh """printf '#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$dir\n\
|
|
|
+ exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/syncserver/SyncServer.exe" "\$@"' > entrypoint.sh
|
|
|
+ chmod +x entrypoint.sh
|
|
|
"""
|
|
|
HELIXNAMES.each { key, value ->
|
|
|
if (value.idtask) {
|
|
|
container_operate(GOST_CLUSTER, [ 'sync' ])
|
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
|
- timeout(time: 30 as Integer, unit: 'MINUTES') {
|
|
|
+ timeout(time: 10 as Integer, unit: 'MINUTES') {
|
|
|
echo "Syncing dictionaries for $key"
|
|
|
def log_dir = value.dir.replace("Files", "LOGS")
|
|
|
syncServer(log_dir, value.idtask, SYNC_SERVER_IMAGE, GOST_CLUSTER)
|
|
@@ -115,7 +119,7 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-*/ stage ("INVITRO dictionaries") {
|
|
|
+ stage ("INVITRO dictionaries") {
|
|
|
steps {
|
|
|
script {
|
|
|
INVITRONAMES.each { key, value ->
|
|
@@ -125,6 +129,12 @@ pipeline {
|
|
|
def log_dir = value.dir.replace("Files", "LOGS")
|
|
|
get_http(log_dir, value.id, ANALIS_IMAGE, TAG, GOST_CLUSTER)
|
|
|
}
|
|
|
+ sh """printf '#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$dir\n\
|
|
|
+ cat \$(ls -1t InvitroGetExtendedProduct_*.xml | head -n1) > InvitroGetExtendedProduct.xml\n\
|
|
|
+ cat \$(ls -1t InvitroGetInfo_*.xml | head -n1) > InvitroGetInfo.xml\n\
|
|
|
+ exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/syncserver/SyncServer.exe" "\$@"' > entrypoint.sh
|
|
|
+ chmod +x entrypoint.sh
|
|
|
+ """
|
|
|
INVITRONAMES.each { key, value ->
|
|
|
if (value.idtask) {
|
|
|
container_operate(GOST_CLUSTER, [ 'sync' ])
|
|
@@ -133,12 +143,6 @@ pipeline {
|
|
|
echo "Syncing dictionaries for $key"
|
|
|
def log_dir = value.dir.replace("Files", "LOGS")
|
|
|
def dir = value.dir
|
|
|
- sh """printf '#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$dir\n\
|
|
|
- cat \$(ls -1t InvitroGetExtendedProduct_*.xml | head -n1) > InvitroGetExtendedProduct.xml\n\
|
|
|
- cat \$(ls -1t InvitroGetInfo_*.xml | head -n1) > InvitroGetInfo.xml\n\
|
|
|
- exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/syncserver/SyncServer.exe" "\$@"' > entrypoint.sh
|
|
|
- chmod +x entrypoint.sh
|
|
|
- """
|
|
|
syncServer(log_dir, value.idtask, SYNC_SERVER_IMAGE, GOST_CLUSTER)
|
|
|
}
|
|
|
}
|
|
@@ -147,7 +151,7 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-/* stage ("ALFA dictionaries") {
|
|
|
+ stage ("ALFA dictionaries") {
|
|
|
steps {
|
|
|
script {
|
|
|
ALFANAMES.each { key, value ->
|
|
@@ -157,6 +161,11 @@ pipeline {
|
|
|
def log_dir = value.dir.replace("Files", "LOGS")
|
|
|
get_http(log_dir, value.id, ANALIS_IMAGE, TAG, GOST_CLUSTER)
|
|
|
}
|
|
|
+ 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
|
|
|
+ """
|
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
|
timeout(time: 10 as Integer, unit: 'MINUTES') {
|
|
|
ALFANAMES.each { key, value ->
|
|
@@ -164,11 +173,6 @@ pipeline {
|
|
|
container_operate(GOST_CLUSTER, [ 'sync' ])
|
|
|
def log_dir = value.dir.replace("Files", "LOGS")
|
|
|
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
|
|
|
- """
|
|
|
syncServer(log_dir, value.idtask, SYNC_SERVER_IMAGE, GOST_CLUSTER)
|
|
|
}
|
|
|
}
|
|
@@ -176,11 +180,15 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-*//* stage ("Gemotest dictionaries") {
|
|
|
+/* stage ("Gemotest dictionaries") {
|
|
|
steps {
|
|
|
script {
|
|
|
echo "Get dictionaries for Gemotest"
|
|
|
get_ftp(GEMOTEST.dir, GEMOTEST.user, GEMOTEST.pass, FTP.GEMOTEST, OPEN_CLUSTER, WGET_IMAGE)
|
|
|
+ sh """printf '#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$dir\n\
|
|
|
+ exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/syncserver/SyncServer.exe" "\$@"' > entrypoint.sh
|
|
|
+ chmod +x entrypoint.sh
|
|
|
+ """
|
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
|
timeout(time: 10 as Integer, unit: 'MINUTES') {
|
|
|
echo "Syncing dictionaries for Gemotest"
|
|
@@ -192,11 +200,15 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-*//* stage ("CMD dictionaries") {
|
|
|
+*/ stage ("CMD dictionaries") {
|
|
|
steps {
|
|
|
script {
|
|
|
echo "Get dictionaries for CMD"
|
|
|
- get_ftp(CMD.dir, CMD.user, CMD.pass, FTP.CMD, GOST_CLUSTER, WGET_IMAGE)
|
|
|
+ get_ftp(CMD.dir, CMD.user, CMD.pass, FTP.CMD, GOST_CLUSTER, WGET_IMAGE)
|
|
|
+ sh """printf '#!/bin/bash\ncd /root/wine32/dosdevices/unc/samba.infoclinica.lan/smartdelta01/$dir\n\
|
|
|
+ exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/syncserver/SyncServer.exe" "\$@"' > entrypoint.sh
|
|
|
+ chmod +x entrypoint.sh
|
|
|
+ """
|
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
|
timeout(time: 10 as Integer, unit: 'MINUTES') {
|
|
|
echo "Syncing dictionaries for CMD"
|
|
@@ -208,7 +220,7 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-*/ }
|
|
|
+ }
|
|
|
|
|
|
post {
|
|
|
always {
|