From 9e4b77b9a1fb977d9f0c4e7e18ea740d32d28609 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Sat, 19 Oct 2019 11:17:20 +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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jobs/Hi365_HRA_SIT_Deploy/config.xml b/jobs/Hi365_HRA_SIT_Deploy/config.xml index a161a99c..13cd69c9 100644 --- a/jobs/Hi365_HRA_SIT_Deploy/config.xml +++ b/jobs/Hi365_HRA_SIT_Deploy/config.xml @@ -134,7 +134,13 @@ false - + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=$(echo $GIT_BRANCH | cut -d'/' -f 3) +sed -i "s/<base.*/<base href=\"\/\" version=\"${version}_${VAR}\"\/>/" WebContent/WEB-INF/jsp/home/home.jsp + + sudo systemctl stop hra.service -- 2.26.2