From 2c9236abff029625f90bd2c7ffcd561117217ae4 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 16 Mar 2020 10:20:47 +0800 Subject: [PATCH] scott: Job [Deploy_CHMB_UAT_136] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by 楊慶堂 --- jobs/Deploy_CHMB_UAT_136/config.xml | 62 ++++++++++++++--------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/jobs/Deploy_CHMB_UAT_136/config.xml b/jobs/Deploy_CHMB_UAT_136/config.xml index d42f1d8c..8b02e638 100644 --- a/jobs/Deploy_CHMB_UAT_136/config.xml +++ b/jobs/Deploy_CHMB_UAT_136/config.xml @@ -1,5 +1,4 @@ - - + 會去抓 https://cm.ylhealth.org/jenkins/view/UAT/job/Deploy_ReportUploader_UAT_136/ 最後一個版本回來部署 false @@ -7,6 +6,7 @@ ylhealth + @@ -16,7 +16,7 @@ develop master release/1.59GA hotfix/1.59.1GA - release/1.71GA + release/1.72GA false @@ -30,7 +30,7 @@ hotfix/1.59.1GA - + 2 @@ -111,16 +111,16 @@ hotfix/1.59.1GA - - - - - + + + + + false - + false - - + + false false true @@ -135,35 +135,35 @@ hotfix/1.59.1GA false NONE false - - - - - - + + + + + + false - - + + false - + - VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") version=${GIT_BRANCH##*/} -sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html -sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/assets/index.html +sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html +sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/assets/index.html - + Deploy_ReportUploader_UAT_136 target/ src/main/resources/static/ReportUploader/lib/ - + true @@ -178,14 +178,14 @@ sudo systemctl stop CHMB_Batch chmb=/opt/chm/chmb tempdir=$(mktemp -d) -7za x target/CHMB-pack.zip -o"${tempdir}" +7za x target/CHMB-pack.zip -o"${tempdir}" rm -rf ${chmb}/lib/* rm -rf ${chmb}/sample/* rm -rf ${chmb}/template/* -mv -f ${tempdir}/CHMB/lib/* "${chmb}/lib" -mv -f ${tempdir}/CHMB/sample/* "${chmb}/sample" -mv -f ${tempdir}/CHMB/template/* "${chmb}/template" -rm -rf "${tempdir}" +mv -f ${tempdir}/CHMB/lib/* "${chmb}/lib" +mv -f ${tempdir}/CHMB/sample/* "${chmb}/sample" +mv -f ${tempdir}/CHMB/template/* "${chmb}/template" +rm -rf "${tempdir}" sudo systemctl start CHMB sudo systemctl start CHMB_Batch -- 2.26.2