jenkins
安装
常用项
选择Discard old builds的策略可以保存log
选择This project is parameterized可以设置变量等
General
- Choice Parameter: 选择
- Git Parameter: git管理(一般在高级中选择DESCENDING_SMART和TOP)
- String Parameter: 字符串
源码管理
- git: Branches to build可以设置
${Version}
构建环境
- Delete workspace before build starts: 执行下一个任务的时候删除任务空间的文件
- Add timestamps to the Console Output: 在log中显示时间
Build Steps
- Conditional step (single) : Execute shell 可以在本机执行多行命令
- Execute shell script on remote host using ssh ssh到别的机器执行多行命令
构建后操作
- Groovy Postbuild: Groovy Script 可以在左边显示黄色的消息
