From ab1ae9c733e5fa4761f38cb7a0cc8b0e5766b8c7 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 12 Dec 2018 10:48:34 +0800 Subject: [PATCH] scott: Job [CHMB_Batch_UAT] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/CHMB_Batch_UAT/config.xml | 178 +++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 jobs/CHMB_Batch_UAT/config.xml diff --git a/jobs/CHMB_Batch_UAT/config.xml b/jobs/CHMB_Batch_UAT/config.xml new file mode 100644 index 00000000..163445ab --- /dev/null +++ b/jobs/CHMB_Batch_UAT/config.xml @@ -0,0 +1,178 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 如 +master +release/1.15GA +hotfix/1.15.1GA + release/1.46GA + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + UAT_136 + false + false + false + false + + 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 + + + + + $RD_Group + false + false + true + + + + + + + + + NotifyMessage=Deploy CHMB on UAT(136) done. + false + + + Notify_Group + SUCCESS + false + false + + + + + + + + false + + false + false + true + true + true + false + true + true + false + false + false + NONE + true + + + + + + false + + + false + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=${GIT_BRANCH##*/} +sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html +sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/assets/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