From d80ed0e6eaa0dc56b3f251c66939c91489cdfa6c Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Sat, 22 Dec 2018 11:26:32 +0800 Subject: [PATCH] scott: Job [Deploy_TW_AWS_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_TW_AWS_HRA_Prod/config.xml | 130 +++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 jobs/Deploy_TW_AWS_HRA_Prod/config.xml diff --git a/jobs/Deploy_TW_AWS_HRA_Prod/config.xml b/jobs/Deploy_TW_AWS_HRA_Prod/config.xml new file mode 100644 index 00000000..d64797bc --- /dev/null +++ b/jobs/Deploy_TW_AWS_HRA_Prod/config.xml @@ -0,0 +1,130 @@ + + + + 打包完會將 war 檔放到 10.36.220.164:/home/ymadmin 下 + false + + + ylhealth + + + + + GIT_BRANCH + 如 +release/1.15GA +hotfix/1.15.1GA + feature/I18N + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB-Rule-Engine.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + HCC_Proxy + 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 + true + + + + + + false + + + false + + + xterm + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=${GIT_BRANCH##*/} +sed -i "s/<title.*/<title>Form v${version}_${VAR}<\/title\/>/" WebContent/WEB-INF/jsp/home/home.jsp + + + + + ssh -i /root/.ssh/id_rsa ec2-user@3.16.159.120 "rm -f ylhealth-hra.war" +scp -i /root/.ssh/id_rsa target/ylhealth-hra.war ec2-user@3.16.159.120:~/ + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2