diff --git a/config.xml b/config.xml index 91317df2c6836769a5ae4665d363e5ed255e1fd3..dec08974ce1a370d655293aa54fff51cd48ae949 100644 --- a/config.xml +++ b/config.xml @@ -808,6 +808,7 @@ + Deploy_AWS_Presale_CHM_Prod Deploy_AWS_Presale_CHMB_Prod Deploy_HRB_oAuth_PRESALE_AWS diff --git a/jobs/Deploy_AWS_Presale_CHM_Prod/config.xml b/jobs/Deploy_AWS_Presale_CHM_Prod/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bfee505dbad825c0101fa285543709e9988ff236 --- /dev/null +++ b/jobs/Deploy_AWS_Presale_CHM_Prod/config.xml @@ -0,0 +1,164 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 如 +master +release/1.15GA +hotfix/1.15.1GA +feature/HEALTHERA-77 + expert_master + false + + + AWS_TW_CHM_AP + + 13.231.136.128 + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + AWS_BUILD_Machine + false + false + false + false + + false + + org.ylhealth.ym + CRM + + clean process-resources package -Dmaven.test.skip=true + spring-boot:run + true + false + true + false + true + false + false + false + false + -1 + false + false + true + + + + + $RD_Group $QA_Group + false + false + true + + + + + + + + + false + + false + false + true + true + true + false + true + false + true + false + false + false + ONLY_CONFIGURATIONS + NONE + false + + + + + + + + + + + false + + + false + + + xterm + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=${GIT_BRANCH##*/} +sed -i "" "s/<title.*/<title ng-bind='page_title'>CRM ${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html +sed -i "" "s/<base.*/<base href=\"\/CRM\/\" version=\"${version}_${VAR}\"\/>/" src/main/resources/static/indexMinify.html + +# Piwik +sed -i "" '/setSiteId/s/[0-9]/14/g' src/main/resources/static/indexMinify.html + + + + + PROD_FILE=CRM-pack.zip +KEY_FILE=../../jenkins +TARGET_HOST=jenkins@${AWS_TW_CHM_AP} +SSH_PROXY="ProxyCommand ssh -i ${KEY_FILE} proxy@10.57.117.130 nc %h %p" + +ssh -i ${KEY_FILE} -o "${SSH_PROXY}" ${TARGET_HOST} "rm -f ${PROD_FILE}" +scp -i ${KEY_FILE} -o "${SSH_PROXY}" target/${PROD_FILE} ${TARGET_HOST}:~/ + + + + + UNSTABLE + 1 + YELLOW + true + + \ No newline at end of file