From 99820babc14f2c0a512731a21f64ec133dec70bb Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 6 May 2019 15:23:54 +0800 Subject: [PATCH] scott: Job [Deploy_CHM_JVTEST_165] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_CHM_JVTEST_165/config.xml | 177 ++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 jobs/Deploy_CHM_JVTEST_165/config.xml diff --git a/jobs/Deploy_CHM_JVTEST_165/config.xml b/jobs/Deploy_CHM_JVTEST_165/config.xml new file mode 100644 index 00000000..64e04006 --- /dev/null +++ b/jobs/Deploy_CHM_JVTEST_165/config.xml @@ -0,0 +1,177 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 正式環境的 branch, 如: +master +release/1.15GA +hotfix/1.15.1GA + DHP/develop + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + DIH_Test_172.16.40.164 + false + false + false + false + + + 0 7,13,17 * * 1-6 + + + false + + org.ylhealth.ym + CRM + + clean process-resources package -Dmaven.test.skip=true + spring-boot:run + true + false + false + false + true + true + true + false + false + -1 + false + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + + + + false + + false + false + true + true + true + false + true + false + true + false + false + false + NONE + false + + + + + + + + + + + + + NotifyMessage=Deploy CHM on American(164) done. + false + + + Notify_Group + SUCCESS + false + false + + + + + + + false + + + false + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=${GIT_BRANCH##*/} +sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html +sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${version}_${VAR}<\/title\/>/" src/main/resources/static/indexMinify.html + + + + + systemctl stop CRM + + +chm=/opt/CRM/ +tempdir=$(mktemp -d) + +rm -f ${chm}/lib/* +rm -rf ${chm}/templates/* + +7za x target/CRM-pack.zip -o"${tempdir}" +mv -f ${tempdir}/CRM/lib/* "${chm}/lib" +mv -f ${tempdir}/CRM/templates/* "${chm}/templates" +rm -rf "${tempdir}" + +systemctl start CRM + + + + UNSTABLE + 1 + YELLOW + true + + \ No newline at end of file -- 2.26.2