From 4350ced116934d63485ccacf1ef3fb18d13cc6f2 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 15 Oct 2018 11:32:13 +0800 Subject: [PATCH] 20140144: Job [Deploy_CHMB_SIT_124] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_CHMB_SIT_124/config.xml | 166 ++++++++++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 jobs/Deploy_CHMB_SIT_124/config.xml diff --git a/jobs/Deploy_CHMB_SIT_124/config.xml b/jobs/Deploy_CHMB_SIT_124/config.xml new file mode 100644 index 00000000..ae8d7d8d --- /dev/null +++ b/jobs/Deploy_CHMB_SIT_124/config.xml @@ -0,0 +1,166 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 如 +master +release/1.15GA +hotfix/1.15.1GA + feature/I18N + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + SIT_124 + false + false + false + false + + + 0 7,13,17 * * * + + + false + + org.ylhealth.ym.hrb.backend + CHMB + + clean package -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + true + false + true + false + false + false + false + -1 + false + false + true + + + + + + false + false + true + + + + + + + + + false + + false + false + true + true + true + false + true + true + false + false + false + NONE + false + + + + + + false + + + false + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=$(echo $GIT_BRANCH | cut -d'/' -f 3) +sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html + + + Deploy_ReportUploader_UAT_136 + target/ + src/main/resources/static/ReportUploader/lib/ + + + true + + true + false + + + + + sudo systemctl stop CHMB +sudo systemctl stop CHMB_Batch + +chmb=/opt/chm/chmb +tempdir=$(mktemp -d) +7za x target/CHMB-pack.zip -o"${tempdir}" +rm -rf ${chmb}/lib/* +rm -rf ${chmb}/sample/* +rm -rf ${chmb}/template/* +mv -f ${tempdir}/CHMB/lib/* "${chmb}/lib" +mv -f ${tempdir}/CHMB/sample/* "${chmb}/sample" +mv -f ${tempdir}/CHMB/template/* "${chmb}/template" +rm -rf "${tempdir}" + +sudo systemctl start CHMB +sudo systemctl start CHMB_Batch + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2