diff --git a/jobs/Deploy_HRB_SIT_131/config.xml b/jobs/Deploy_HRB_SIT_131/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9b980ddb20d071a14349ac105837af70e4a52a68 --- /dev/null +++ b/jobs/Deploy_HRB_SIT_131/config.xml @@ -0,0 +1,128 @@ + + + + 基因 + +預設為康聯 +在 /etc/httpd/conf.d/sit.conf +設定了 +ProxyPass /api/company/getCompanyList http://localhost:9080/api/company/getCompanyList/HealthConn +ProxyPassReverse /api/company/getCompanyList http://localhost:9080/api/company/getCompanyList/HealthConn + false + + + ylhealth + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */develop + + + false + + + + SIT_131 + false + false + false + false + + + 0 7,13,17 * * * + + + false + + org.ylhealth.ym.hrb.backend + HRB + + clean package -Poptimize -Dmaven.test.skip=true -DskipTests=true + spring-boot:run + true + false + true + false + true + true + true + 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 + + + + + + false + + + + + + + VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M") +version=$(echo $GIT_BRANCH | cut -d'/' -f 3) +sed -i "s/<base.*/<base href=\"\/\" version=\"${version}_${VAR}\"\/>/" src/main/resources/static/index.html +sed -i "s/<base.*/<base href=\"\/\" version=\"${version}_${VAR}\"\/>/" src/main/resources/static/login.html + + + + + sudo systemctl stop hrb +sudo rm /opt/HRB/HRB.jar +sudo mv target/HRB-*-exec.jar /opt/HRB/HRB.jar +sudo chmod +x /opt/HRB/HRB.jar +sudo systemctl start hrb + + + + SUCCESS + 0 + BLUE + true + + \ No newline at end of file