false ylhealth GIT_BRANCH 如 master release/1.43GA hotfix/1.42.3GA release/1.52GA false -1 5 -1 -1 2 https://cm.ylhealth.org/gitlab/ym/CRM.git 3485e854-8389-40e8-8c86-b94e94e91904 ${GIT_BRANCH} false UAT_136 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 false false true NotifyMessage=Deploy CHM on UAT(136) done. false Notify_Group SUCCESS false false CHM_Run_Automation SUCCESS true false false false false true true true false true true false false false NONE false false false 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 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 chm=/opt/chm/chm tempdir=$(mktemp -d) sudo rm -f ${chm}/lib/* sudo rm -rf ${chm}/templates/* 7za x target/CRM-pack.zip -o"${tempdir}" sudo mv -f ${tempdir}/CRM/lib/* "${chm}/lib" sudo mv -f ${tempdir}/CRM/templates/* "${chm}/templates" rm -rf "${tempdir}" sudo systemctl start CRM UNSTABLE 1 YELLOW true