From dc410a19bdaac7c68a8eb6174e6491614f0a6f8b Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 22 Aug 2018 17:02:02 +0800 Subject: [PATCH] 20160048: Job [Deploy_FORM_SIT_132] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ³¢ªں --- jobs/Deploy_FORM_SIT_132/config.xml | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 jobs/Deploy_FORM_SIT_132/config.xml diff --git a/jobs/Deploy_FORM_SIT_132/config.xml b/jobs/Deploy_FORM_SIT_132/config.xml new file mode 100644 index 00000000..e6829307 --- /dev/null +++ b/jobs/Deploy_FORM_SIT_132/config.xml @@ -0,0 +1,126 @@ + + + + + false + + + ylhealth + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/form.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */develop + + + false + + + + SIT_132 + false + false + false + false + + false + + com.ylhealth.survey + designer_web + + clean package -Dmaven.test.skip=true -P !jenkins,qa + jetty:run + true + false + false + false + true + true + true + false + false + -1 + false + true + + + + + + + + + + false + + false + false + true + true + true + false + true + true + false + false + false + NONE + false + + + + + + false + + + + + + + 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% +"C:\Program Files\Git\usr\bin\sed" -i "s/<title.*/<title>Form v%VAR%<\/title\/>/" src\main\webapp\WEB-INF\jsp\home.jsp + + + + + + set target=C:\Deploy\form\webapps +net stop form +copy /Y target\designer.war %target%\ +net start form + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2