false ylhealth 1 2 -1 -1 2 https://cm.ylhealth.org/gitlab/ym/HRB.git 3485e854-8389-40e8-8c86-b94e94e91904 ${GIT_BRANCH} false SIT_132 false false false false false org.ylhealth.ym.hrb.backend HRB clean package cobertura:cobertura org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=false spring-boot:run true false false false true true true false false -1 false false true /** false false false true 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 SUCCESS 0 BLUE true