123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!/bin/sh
- # 克隆项目源码,编译打包,部署到服务器
- CURRENT_DIR=`pwd`
- PROJECT_NAME="cooleshow"
- PROJECT_LIBS="libs"
- # 进入项目目录
- cd ${PROJECT_NAME}
- # 复制项目jar包到服务器
- rm -rf ${CURRENT_DIR}/${PROJECT_LIBS} && mkdir -p ${CURRENT_DIR}/${PROJECT_LIBS}
- echo "create jar dir done"
- cp service.md \
- cooleshow-user/user-admin/target/user-admin.jar \
- audio-analysis/target/audio-analysis.jar \
- cooleshow-auth/auth-server/target/auth-server.jar \
- cooleshow-bbs/target/cooleshow-bbs.jar \
- cooleshow-user/user-classroom/target/user-classroom.jar \
- cooleshow-cms/target/cooleshow-cms.jar \
- cooleshow-gateway/gateway-web/target/gateway-web.jar \
- cooleshow-mall/mall-admin/target/mall-admin.jar \
- cooleshow-mall/mall-portal/target/mall-portal.jar \
- cooleshow-user/user-student/target/user-student.jar \
- cooleshow-task/target/cooleshow-task.jar \
- cooleshow-user/user-teacher/target/user-teacher.jar \
- cooleshow-user/user-website/target/user-website.jar \
- cooleshow-user/user-tenant/target/user-tenant.jar \
- cooleshow-websocket/target/cooleshow-websocket.jar \
- cooleshow-app/target/cooleshow-app.jar \
- ${CURRENT_DIR}/${PROJECT_LIBS}/
- echo "copy jar done"
- # 服务启动
- if [ -f ${CURRENT_DIR}/jenkins-server.sh ];then
- echo "./jenkins-server.sh server"
- cd ${CURRENT_DIR} && ./jenkins-server.sh server
- else
- echo "jenkins-server.sh not exist"
- exit 1;
- fi
|