From 69673952ab035ec6f61f23a3e55012ba12b47a26 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Sat, 19 Oct 2019 10:11:21 +0800 Subject: [PATCH] 20180083: Job [Hi365_HRA_SIT_Deploy] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ยงรตยบ~? --- jobs/Hi365_HRA_SIT_Deploy/config.xml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/jobs/Hi365_HRA_SIT_Deploy/config.xml b/jobs/Hi365_HRA_SIT_Deploy/config.xml index 35468c27..dfd54c23 100644 --- a/jobs/Hi365_HRA_SIT_Deploy/config.xml +++ b/jobs/Hi365_HRA_SIT_Deploy/config.xml @@ -58,7 +58,7 @@ 2 - https://cm.ylhealth.org/gitlab/YongYue/hi365-api.git + https://cm.ylhealth.org/gitlab/YongYue/hi365-hra.git 3485e854-8389-40e8-8c86-b94e94e91904 @@ -82,7 +82,7 @@ com.h2u.hi365.resource Resource-Server - clean package -Dmaven.test.skip=true -DskipTests=true + clean package -Dmaven.test.skip=true -P !jenkins,prod spring-boot:run true false @@ -113,7 +113,7 @@ - NotifyMessage=Deploy Hi365 API done on SIT. + NotifyMessage=Deploy HRA done on SIT. false @@ -137,16 +137,14 @@ VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") version=$(echo $GIT_BRANCH | cut -d'/' -f 3) -# sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html -# sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/indexMinify.html +sed -i "s/<base.*/<base href=\"\/\" version=\"${version}_${VAR}\"\/>/" WebContent/WEB-INF/jsp/home/home.jsp - sudo systemctl stop Hi365Resource -sudo rm -f /opt/Hi365ResourceServer/lib/*.jar -sudo /usr/bin/unzip -j -o target/Resource-Server-pack.zip "Resource-Server/lib/*" -d /opt/Hi365ResourceServer/lib -sudo systemctl start Hi365Resource + sudo systemctl stop hra.service +sudo cp target/ylhealth-hra.war /opt/hra/webapps/ +sudo systemctl start hra.service -- 2.26.2