From e59b88ff46b5690107646095cfcef11b101538de Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 22 Aug 2018 17:03:52 +0800 Subject: [PATCH] 20160048: Job [Deploy_HRBApi_SIT_132] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ³¢ªں --- jobs/Deploy_HRBApi_SIT_132/config.xml | 137 ++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 jobs/Deploy_HRBApi_SIT_132/config.xml diff --git a/jobs/Deploy_HRBApi_SIT_132/config.xml b/jobs/Deploy_HRBApi_SIT_132/config.xml new file mode 100644 index 00000000..d149eb5a --- /dev/null +++ b/jobs/Deploy_HRBApi_SIT_132/config.xml @@ -0,0 +1,137 @@ + + + + + false + + + ylhealth + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_API.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */develop + + + false + + + + SIT_132 + false + false + false + false + + + 0 7,13,17 * * * + + + false + + org.ylhealth.ym.hrb.ext + HRB_API + + clean package -Poptimize -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + false + 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 + + + + + + + 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% +echo Version:%VAR% > src\main\resources\static\version.txt + + + + + set target=C:\Deploy\HRB_API +net stop HRB_API +del %target%\lib\*.* /q +"C:\Program Files\7-Zip\7z.exe" e target\HRB_API-pack.zip -o%target%\lib HRB_API\lib\*.* -r +net start HRB_API + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2