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 "注册服务结束************"
```
- Linux
- 高级
- 杀毒
- 记一次中毒事件
- clamav查毒软件
- 处理挖矿病毒
- 定时任务
- kill
- chattr文件保护
- 运行级别
- Linux启动
- 文件加密
- ssh免密登录
- .ssh
- 问题
- 脚本
- 阿里云域名解析
- yum源
- 时间同步
- keepalived实现高可用
- dos字符与unix字符
- 大文件上传
- 基础
- proc目录
- 设置宋体
- 基础命令_01
- 基础命令_02
- SELinux
- 文件描述符
- 基础命令_03
- awk
- 系统日志
- date命令
- bc命令
- lsof
- vim快捷键
- shell
- 循环控制
- expr
- 执行脚本的方式
- declare
- shell脚本
- 控制启停脚本
- 数值计算
- centos
- 配置网络
- 环境
- 灰度环境
- ansible
- 模块
- 语法
- file模块
- setup模块
- ping模块
- copy模块
- command模块
- shell模块
- service模块
- cron模块
- yum模块
- user 模块
- group模块
- 指定用户
- playbook
- 实例
- ansible安装
- Jenkins
- shell部署
- 导入已有项目的配置
- 执行shell
- tungsten数据同步
- 防火墙
- netfilter