From 85eda9a9b3cbf63cd414d214ed72f23e961ca53d Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 30 Jul 2018 15:00:48 +0800 Subject: [PATCH] 20140144: Job [Deploy_CHM_UAT_136] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_CHM_UAT_136/config.xml | 35 ++++++++++++------------------ 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/jobs/Deploy_CHM_UAT_136/config.xml b/jobs/Deploy_CHM_UAT_136/config.xml index e35c7f2a..012be010 100644 --- a/jobs/Deploy_CHM_UAT_136/config.xml +++ b/jobs/Deploy_CHM_UAT_136/config.xml @@ -4,7 +4,7 @@ false - + ylhealth @@ -106,26 +106,12 @@ hotfix/1.15.1GA - - set path=%path%;"C:\Program Files\Git\usr\bin"; - -REM 取得今天的年、月、日 (自動補零) -SETLOCAL EnableDelayedExpansion - -for /f "skip=1 tokens=1-6 delims= " %%a in ('wmic path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') do ( - IF NOT "%%~f"=="" ( - set /a FormattedDate=10000 * %%f + 100 * %%d + %%a - set FormattedDate=%%f!FormattedDate:~-4,2!!FormattedDate:~-2,2!_%%b:%%c - ) -) -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 - -echo Version:%VAR% -"C:\Program Files\Git\usr\bin\sed" -i "s/<title.*/<title ng-bind='page_title'>CRM %version%_%VAR%<\/title\/>/" src\main\resources\static\index.html -"C:\Program Files\Git\usr\bin\sed" -i "s/<base.*/<base href=\"\/CRM\/\" version=\"%version%_%VAR%\"\/>/" src\main\resources\static\indexMinify.html - - + + 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 + @@ -136,6 +122,13 @@ del C:\CHM\CRM\lib\*.* /q xcopy /Y /S src\main\resources\templates\* C:\CHM\CRM\templates net start CRM + + sudo systemctl stop CRM +rm -f /opt/chm/chm/lib/* +7za e target/CRM-pack.zip -o/opt/chm/chm/lib/ CRM\lib\*.* -r +7za e target/CRM-pack.zip -o/opt/chm/chm/templates/ CRM\templates\*.* -r +sudo systemctl start CRM + UNSTABLE -- 2.26.2