From 3c3bb228b577c99c9c5f65f461da503f1fde4ac1 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Thu, 14 Mar 2019 18:02:34 +0800 Subject: [PATCH] 20140144: Job [Deploy_HRB_Prod] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_HRB_Prod/config.xml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/jobs/Deploy_HRB_Prod/config.xml b/jobs/Deploy_HRB_Prod/config.xml index a278fbfa..d318b8af 100644 --- a/jobs/Deploy_HRB_Prod/config.xml +++ b/jobs/Deploy_HRB_Prod/config.xml @@ -1,10 +1,10 @@ - + 打包正式環境用的檔案 false - + ylhealth @@ -29,7 +29,7 @@ hotfix/1.15.1GA - + 2 @@ -83,11 +83,11 @@ hotfix/1.15.1GA - + - + false false @@ -104,18 +104,24 @@ hotfix/1.15.1GA NONE false + + + + + - + false + false - + xterm - + @@ -132,9 +138,10 @@ for /f "skip=1 tokens=1-6 delims= " %%a in ('wmic path Win32_Loca ) for /f "tokens=*" %%i in ('git rev-parse --short HEAD') do set VAR=%%i_%FormattedDate% for /F "delims=/ tokens=3" %%i in ("%GIT_BRANCH%") do set version=%%i +for /f %%a in ('git describe --tags') do set "tags=%%a" -sed -i "s/<base.*/<base href=\"\/\" version=\"%version%_%VAR%\"\/>/" src/main/resources/static/index.html -sed -i "s/<base.*/<base href=\"\/\" version=\"%version%_%VAR%\"\/>/" src/main/resources/static/login.html +sed -i "s/<base.*/<base href=\"\/\" version=\"%tags%_%version%_%VAR%\"\/>/" src/main/resources/static/index.html +sed -i "s/<base.*/<base href=\"\/\" version=\"%tags%_%version%_%VAR%\"\/>/" src/main/resources/static/login.html -- 2.26.2