From ba86f2759db81ab0ab41b98cfae7b716d42451bd Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Thu, 23 May 2019 12:04:31 +0800 Subject: [PATCH] 20160017: Job [Deploy_AWS_Presale_HRB_oAuth_Resource_Prod] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ÁªþÈ --- .../config.xml | 138 ++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml diff --git a/jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml b/jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml new file mode 100644 index 00000000..b4abbec5 --- /dev/null +++ b/jobs/Deploy_AWS_Presale_HRB_oAuth_Resource_Prod/config.xml @@ -0,0 +1,138 @@ + + + + + false + + + ylhealth + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Resource_Server.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + expert_develop + + + false + + + + PreSale_SIT_172.16.40.163 + false + false + false + false + + + 0 7,13,17 * * * + + + false + + org.ylhealth.ym.hrb.oauth + resource_server + + clean package -Poptimize -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + false + false + true + false + false + false + false + -1 + false + false + true + + + + + $PreSale_Group $QA_Group + false + false + true + + + + + + + + + false + + false + false + true + true + true + false + true + false + 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 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 + + + + + systemctl stop HRBResource + +rm -f /opt/HRBResourceServer/lib/*.jar +/usr/bin/unzip -j -o target/resource_server-pack.zip "resource_server/lib/*" -d /opt/HRBResourceServer/lib + +systemctl start HRBResource + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file -- 2.26.2