diff --git a/jobs/Deploy_HRBApi_DEV_115/config.xml b/jobs/Deploy_HRBApi_DEV_115/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..086c1a17a2b4449ea1c047d1904436d9734a8ab4 --- /dev/null +++ b/jobs/Deploy_HRBApi_DEV_115/config.xml @@ -0,0 +1,110 @@ + + + + + false + + + ylhealth + + + + 1 + 1 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_API.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + master + + + false + + + + DEV_115 + false + false + false + false + + 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 + true + true + false + false + -1 + false + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + 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=E:\CHM\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