🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
1.项目信息 ![](https://box.kancloud.cn/eb10b8a1db8dd6562af8b1e37b09b0dc_1470x860.png) 2.参数化构建 ![](https://box.kancloud.cn/3ac2f7e022779717733dafd205bb5703_1430x815.png) ![](https://box.kancloud.cn/16401981cf0c1be53c120c16be5aea43_1404x441.png) 3. 源码管理 ![](https://box.kancloud.cn/32d55b4c05a79032890ecdfe66293bf0_1494x683.png) 4. 环境构建 ![](https://box.kancloud.cn/3677c80641cf6dbfd7c1cd0fc48e3ec2_1517x507.png) 5. 远程拷贝包,并允许jar ![](https://box.kancloud.cn/c2afa626ecb8da0fedd9d8ce55f93610_1467x591.png) ## docker ``` find . \( -name "log4j.properties" -o -name "logback.xml" \) -exec rm -f {} \; cd /data/aici/ci-console/.jenkins/jobs/TEST_crm3_service_auth/workspace/sm-auth-service ``` ``` echo "打包开始************" CI_HPS_PATH=/data/aici/ci-hps CI_PACKAGE_PATH=/data/aici/ci-package echo "remove old file************" rm -rf $CI_PACKAGE_PATH/service-smauth/webapps/*&&rm -rf $CI_PACKAGE_PATH/service-smauth.zip echo "upzip war to package path***********" unzip ${WORKSPACE}/sm-auth-service/target/sm-auth-service.war -d $CI_PACKAGE_PATH/service-smauth/webapps/sm-auth-service cp -f $CI_PACKAGE_PATH/sbin/web_smauth.xml $CI_PACKAGE_PATH/service-smauth/webapps/sm-auth-service/WEB-INF/web.xml chmod -Rf 755 $CI_PACKAGE_PATH/service-smauth/webapps echo "create zip file" cd $CI_PACKAGE_PATH zip -r service-smauth.zip service-smauth cp -rp service-smauth.zip ${WORKSPACE} echo "打包结束************" ``` ``` rm -rf ${WORKSPACE}/service-smauth.zip echo "注册服务开始************" CI_REGISTER=/data/aici/ci-register JAVA_HOME=/data/aici/ci-console/jdk1.8.0_152 export JAVA_HOME echo "csf-register begin******" $CI_REGISTER/csf-register/register.sh sm-auth ${WORKSPACE}/sm-auth-service/target/sm-auth-service/WEB-INF/lib /data/aici/ci-register/csf-register echo "csf-register-zk begin******" cd $CI_REGISTER/csf-register-zk/bin&&sh register.sh /data/aici/ci-register/csf-register-zk echo "注册服务结束************" ```