diff --git a/jobs/Deploy_Expert_CHMB_Production/config.xml b/jobs/Deploy_Expert_CHMB_Production/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..871437dd8cdc54bd5bc9e4565370b21bf062b014 --- /dev/null +++ b/jobs/Deploy_Expert_CHMB_Production/config.xml @@ -0,0 +1,162 @@ + + + + + false + + + ylhealth + + + + + GIT_BRANCH + 如 +master +release/1.15GA +hotfix/1.15.1GA + expert_master + false + + + AWS_TW_CHM_AP + + 54.64.65.112 + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${GIT_BRANCH} + + + false + + + + AWS_BUILD_Machine + false + false + false + false + + false + + org.ylhealth.ym.hrb.backend + CHMB + + clean package -Dmaven.test.skip=true -DskipTests=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 + false + true + true + true + false + true + false + true + false + false + false + NONE + false + + + + + + + + + + + false + + + false + + + xterm + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=${GIT_BRANCH##*/} +sed -i "" "s/<base.*/<base href=\"\/CHMB\/\" version=\"${version}_${VAR}\"\/>/" src/main/resources/static/index.html + + + + + + PROD_FILE=CHMB-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}:~/ + + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file