From 311bbc4a93f2f5fae8736b28522beb2d452ddbe4 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Tue, 11 Dec 2018 12:31:08 +0800 Subject: [PATCH] 20140144: Job [Deploy_HRB_PRESALE_163] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_HRB_PRESALE_163/config.xml | 116 +++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 jobs/Deploy_HRB_PRESALE_163/config.xml diff --git a/jobs/Deploy_HRB_PRESALE_163/config.xml b/jobs/Deploy_HRB_PRESALE_163/config.xml new file mode 100644 index 00000000..236658d9 --- /dev/null +++ b/jobs/Deploy_HRB_PRESALE_163/config.xml @@ -0,0 +1,116 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 正式環境的 branch, 如: +master +release/1.15GA +hotfix/1.15.1GA + DHP + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + DIH_Test_172.16.40.164 + false + false + false + false + + false + + org.ylhealth.ym.hrb.backend + HRB + + clean package -Poptimize -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + true + false + true + true + false + false + false + -1 + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + false + + + false + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=${GIT_BRANCH##*/} +sed -i "s/<base.*/<base href=\"\/\" version=\"${version}_${VAR}\"\/>/" src/main/resources/static/index.html +sed -i "s/<base.*/<base href=\"\/\" version=\"${version}_${VAR}\"\/>/" src/main/resources/static/login.html + + + + + systemctl stop hrb +rm -f /opt/HRB/lib/* +7za e target/HRB-pack.zip -o/opt/HRB/lib/ HRB/lib/*.* -r -y +systemctl start hrb + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2