From aaadc66be2a5282b13d1be98d96c5d9741f21bc3 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Fri, 24 Aug 2018 13:45:19 +0800 Subject: [PATCH] 20180083: Job [Deploy_HRB_DEV_115] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by §õº~? --- jobs/Deploy_HRB_DEV_115/config.xml | 118 +++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 jobs/Deploy_HRB_DEV_115/config.xml diff --git a/jobs/Deploy_HRB_DEV_115/config.xml b/jobs/Deploy_HRB_DEV_115/config.xml new file mode 100644 index 00000000..8ef549ed --- /dev/null +++ b/jobs/Deploy_HRB_DEV_115/config.xml @@ -0,0 +1,118 @@ + + + + + false + + + ylhealth + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + ${GIT_BRANCH} + + + false + + + + false + false + + 40 + 0 + false + + + + DEV_115 + false + false + false + false + + + 0 7,13,17 * * * + + + false + + org.ylhealth.ym.hrb.backend + HRB + + clean package -Poptimize -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + false + false + true + true + true + false + false + -1 + false + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + + 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% +"C:\Program Files\Git\usr\bin\sed" -i "s/<base.*/<base href=\"\/\" version=\"v%VAR%\"\/>/" src\main\resources\static\index.html +"C:\Program Files\Git\usr\bin\sed" -i "s/<base.*/<base href=\"\/\" version=\"v%VAR%\"\/>/" src\main\resources\static\login.html + + + + + net stop HRB +FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :50501 ^| findstr LISTEN') DO TaskKill.exe /F /PID %%P +del E:\CHM\HRB\lib\*.* /q +"C:\Program Files\7-Zip\7z.exe" e target\HRB-pack.zip -oE:\CHM\HRB\lib HRB\lib\*.* -r +net start HRB + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2