From 8f5d395d807ea6ceef1865514ddbcd2d8b2f7663 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Tue, 18 Dec 2018 18:31:37 +0800 Subject: [PATCH] scott: Job [Deploy_DHP_HRA_Prod] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_DHP_HRA_Prod/config.xml | 141 ++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 jobs/Deploy_DHP_HRA_Prod/config.xml diff --git a/jobs/Deploy_DHP_HRA_Prod/config.xml b/jobs/Deploy_DHP_HRA_Prod/config.xml new file mode 100644 index 00000000..6aec5e0f --- /dev/null +++ b/jobs/Deploy_DHP_HRA_Prod/config.xml @@ -0,0 +1,141 @@ + + + + 打包完會將 war 檔放到 10.36.220.164:/home/ymadmin 下 + false + + + ylhealth + + + + + GIT_BRANCH + 如 +release/1.15GA +hotfix/1.15.1GA + master + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB-Rule-Engine.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + Build_Prod_127 + false + false + false + false + + false + + com.ylhealth.hra + ylhealth_hra + + clean package -Dmaven.test.skip=true -P !jenkins,prod + 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 + + + false + + + xterm + + + + + + 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\/>/" WebContent\WEB-INF\jsp\home\home.jsp + + + + + + set path=%path%;"C:\Program Files\Git\usr\bin"; +scp -i F:/jenkins/id_rsa target/ylhealth-hra.war ymadmin@10.36.220.164:~/ + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2