From 57d7cdc1732d475213bf0aa6fb0f4166fe7b074e Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Fri, 10 Aug 2018 15:20:51 +0800 Subject: [PATCH] 20140144: Job [Deploy_CHM_SIT_131] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_CHM_SIT_131/config.xml | 116 +++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 jobs/Deploy_CHM_SIT_131/config.xml diff --git a/jobs/Deploy_CHM_SIT_131/config.xml b/jobs/Deploy_CHM_SIT_131/config.xml new file mode 100644 index 00000000..1d2ff928 --- /dev/null +++ b/jobs/Deploy_CHM_SIT_131/config.xml @@ -0,0 +1,116 @@ + + + + develop + false + + + ylhealth + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */develop + + + false + + + + SIT_131 + false + false + false + false + + + 0 7,13,17 * * * + + + false + + org.ylhealth.ym + CRM + + clean process-resources package -Dmaven.test.skip=true + spring-boot:run + true + false + false + 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/<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 + + + + + sudo systemctl stop CRM +sudo [ -e /opt/CRM/CRM.jar ] && rm /opt/CRM/CRM.jar +sudo mv target/CRM-*-exec.jar /opt/CRM/CRM.jar +sudo chmod +x /opt/CRM/CRM.jar +sudo systemctl start CRM + + + + UNSTABLE + 1 + YELLOW + true + + \ No newline at end of file -- 2.26.2