diff --git a/jobs/Deploy_CHM_SIT_132_Test/config.xml b/jobs/Deploy_CHM_SIT_132_Test/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..5ff6d243b935bdfd7869af2107fa3e745bc362b7 --- /dev/null +++ b/jobs/Deploy_CHM_SIT_132_Test/config.xml @@ -0,0 +1,183 @@ + + + + + false + + + ylhealth + + + + 1 + 2 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + ${GIT_BRANCH} + + + false + + + + SIT_132 + false + false + false + false + + + + false + + + false + + org.ylhealth.ym + CRM + + clean process-resources package -Dmaven.test.skip=true + spring-boot:run + -XX:ReservedCodeCacheSize=512m + 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 + + + + $QA_Group + + + + $PROJECT_DEFAULT_SUBJECT + $PROJECT_DEFAULT_CONTENT + + + + + + false + false + $PROJECT_DEFAULT_REPLYTO + project + + + + text/html + CHM SIT 部版成功通知 + <html> +<head> +<title>Page Title</title> +</head> +<body> + +<h1>This is a Heading</h1> +<p>This is a paragraph.</p> + +</body> +</html> + + + $DEFAULT_PRESEND_SCRIPT + $DEFAULT_POSTSEND_SCRIPT + true + false + $QA_Group + + false + false + + + + + xterm + + + + + + 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 ng-bind='page_title'>CRM v%VAR%<\/title\/>/" src\main\resources\static\index.html +"C:\Program Files\Git\usr\bin\sed" -i "s/<title.*/<title ng-bind='page_title'>CRM v%VAR%<\/title\/>/" src\main\resources\static\indexMinify.html + + + + + net stop CRM +FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :50201 ^| findstr LISTEN') DO TaskKill.exe /F /PID %%P +del C:\Deploy\CRM\lib\*.* /q +"C:\Program Files\7-Zip\7z.exe" e target\CRM-pack.zip -oC:\Deploy\CRM\lib CRM\lib\*.* -r +xcopy /Y /S src\main\resources\templates\* C:\Deploy\CRM\templates +net start CRM + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file