false ylhealth Build_Branch develop false 1 3 -1 -1 2 https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git 3485e854-8389-40e8-8c86-b94e94e91904 */develop false SIT_132 false false false false 0 7,13,17 * * * 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 true Branch_Variable=$Build_Branch false CHMB_Analysis SUCCESS false false NotifyMessage=Deploy CHMB on SIT(132) done. false Notify_Group SUCCESS false false Deploy_ReportUploader_SIT_132 ALWAYS false false FAILURE 2 RED true UNSTABLE 1 YELLOW true FAILURE 2 RED 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% "C:\Program Files\Git\usr\bin\sed" -i "s/<title.*/<title>CHM Booking Manage v%VAR%<\/title\/>/" src\main\resources\static\index.html Deploy_ReportUploader_SIT_132 target/jnlp/lib/* src/main/resources/static/ReportUploader/lib/ true false set target=C:\Deploy\hrb_manage net stop CRM_HRB REM sleep 5 seconds ping -n 5 127.0.0.1 >nul FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :50401 ^| findstr LISTEN') 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