diff --git a/jobs/Deploy_HRB_Prod/config.xml b/jobs/Deploy_HRB_Prod/config.xml index a278fbfa43d569aa02152f3748fae0587b6cd697..d318b8afc7e0430b24898615fa481578fdbb1f96 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