From 56f790177176d20fe15d09e84a1624518676ece1 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Tue, 24 Jul 2018 17:56:33 +0800 Subject: [PATCH] 20160017: Job [Deploy_CHMB_UAT_136] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ÁªþÈ --- jobs/Deploy_CHMB_UAT_136/config.xml | 155 ++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 jobs/Deploy_CHMB_UAT_136/config.xml diff --git a/jobs/Deploy_CHMB_UAT_136/config.xml b/jobs/Deploy_CHMB_UAT_136/config.xml new file mode 100644 index 00000000..87817bc9 --- /dev/null +++ b/jobs/Deploy_CHMB_UAT_136/config.xml @@ -0,0 +1,155 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 如 +master +release/1.15GA +hotfix/1.15.1GA + release/1.37GA + false + + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + UAT_136 + false + false + false + false + + false + + org.ylhealth.ym.hrb.backend + CHMB + + clean package -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + true + false + true + false + false + false + false + -1 + false + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + + + + false + + false + false + true + true + true + false + true + true + false + false + false + NONE + false + + + + + + false + + + + + + + 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 + + +sed -i "s/<base.*/<base href=\"\/CHMB\/\" version=\"%version%_%VAR%\"\/>/" src\main\resources\static\index.html + + + Deploy_ReportUploader_UAT + target/ReportUploader* + src/main/resources/static/ReportUploader/lib/ + + + true + false + + + + + set target=C:\CHM\CHMB +net stop CRM_HRB +FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :50401') DO TaskKill.exe /F /PID %%P +del %target%\lib\*.* /q +"C:\Program Files\7-Zip\7z.exe" e target\CHMB-pack.zip -o%target%\lib CHMB\lib\*.* -r +xcopy /Y /S src\main\resources\template\* %target%\template +xcopy /Y /S src\main\resources\sample\* %target%\sample +net start CRM_HRB + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2