From e3a1db8720cf485c7dff2e4fcb3d71df152bd6dd Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Fri, 17 Aug 2018 13:48:18 +0800 Subject: [PATCH] 20140144: Job [Deploy_HRB_SIT_130] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_HRB_SIT_130/config.xml | 115 +++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 jobs/Deploy_HRB_SIT_130/config.xml diff --git a/jobs/Deploy_HRB_SIT_130/config.xml b/jobs/Deploy_HRB_SIT_130/config.xml new file mode 100644 index 00000000..47b08bac --- /dev/null +++ b/jobs/Deploy_HRB_SIT_130/config.xml @@ -0,0 +1,115 @@ + + + + develop + false + + + ylhealth + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */develop + + + false + + + + SIT_130 + false + false + false + false + + + 5 7,13,17 * * * + + + 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 + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + + + + false + + false + false + true + true + true + false + true + true + false + false + false + NONE + false + + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=$(echo $GIT_BRANCH | cut -d'/' -f 3) +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 + + + + + sudo systemctl stop hrb +sudo rm -f /opt/HRB/lib/* +sudo 7za e target/HRB-pack.zip -o/opt/HRB/lib/ HRB/lib/*.* -r -y +sudo systemctl start hrb + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2