当前位置:网站首页>【Jenkins笔记】入门,自由空间;持续集成企业微信;allure报告,持续集成电子邮件通知;构建定时任务
【Jenkins笔记】入门,自由空间;持续集成企业微信;allure报告,持续集成电子邮件通知;构建定时任务
2022-07-28 23:47:00 【人形bug制造机9527】
官网:https://www.jenkins.io/zh/
官方文档:https://www.jenkins.io/zh/doc/
这里就跳过安装流程了,
docker安装
apt安装
基本信息
各个文件夹的作用
jobs:存放项目的文件夹
logs:日记文件的目录
nodes:节点的配置
plugins:安装的插件
secrets:密钥文件夹
updats:更新的插件
userContent:用户定制化内容
users:用户的基本信息
war:web应用存放的文件夹
workflow-libs:工作流文件夹
workspace:工作空间
使用
创建以及使用Job(项目)
创建自由项目
这里可以进行配置
自定义工作空间配置项目空间
然后就可以执行部署了注意
这里的自定义工作空间位置,由于我们使用的是docker,所以地址必须是相对于容器来说的;
想要jenkins容器能访问到这个文件,就必须在容器中挂载文件夹,比如我们把/project/ad
挂在到了容器的/var/jenkins_home/workspace
那么我们就需要把文件放在/project
然后上面的空间地址填写/var/jenkins_home/workspace
由于我们启动的时候给jenkinshome挂在的文件夹,所以我们可以直接操作,你也可以专门额外挂载一个文件用以存放项目
这种方式适合简单的项目,也就是说Jenkins和项目在同一台机器的时候
构建定时任务
1.选择工作=>配置=>构建触发器=>定时构建
2.配置定时任务*****
每个星号从左向右分别对应分-时-日-月-年
比如10 4 * * *
代表的是每天的4点10分
执行构建
插件的使用
集成Allure报告插件
示范
配置allure,全局配置中心
取消自动安装并指定我们刚才安装的插件目录
集成企业微信
1.在企业微信中创建机器人获取webhook
2.添加企业微信插件
3.在系统配置中添加默认webhook
地址
系统管理=>系统配置=>企业微信通知配置
4.进入job添加构建后的操作
构建成功以后将会收到微信提示
集成电子邮件
教程视频
1.安装电子邮件插件
2.到系统配置
部分,配置Jenkins Location
3.配置Extended E-mail Notification
配置邮件接收人
边栏推荐
- [AD learning] the course of PCB drawing in this marine vehicle competition
- Copy the table in word to wechat as a picture and send it
- Time series prediction | MATLAB realizes time series prediction of TCN time convolution neural network
- Educational Codeforces Round 132 (Rated for Div. 2)【A~C】
- Wechat campus bathroom reservation applet graduation design finished product (5) assignment
- 【commons-lang3专题】004- NumberUtils 专题
- What opportunities does the London gold real-time market bring?
- QT static compiler (MinGW compilation)
- [notes for question brushing] binary linked list to integer
- 电子招标初学者指南
猜你喜欢
Have you seen the management area decoupling architecture? Can help customers solve big problems
如何执行建设项目的时间影响分析?
mysql存储过程 实现创建一张表(复制原表的结构新建的表)
Hash table~
Some considerations about ThreadPool
[target detection] Introduction to yolor theory + practical test visdrone data set
小程序毕设作品之微信校园浴室预约小程序毕业设计成品(8)毕业设计论文模板
大页内存原理及使用设置
QT静态编译程序(Mingw编译)
状态压缩dp-蒙德里安的梦想
随机推荐
伦敦金即时行情带来什么机会?
【commons-lang3专题】001-StringUtils 专题
Some considerations about ThreadPool
Cloud function realizes website automatic check-in configuration details [web function /nodejs/cookie]
[Commons lang3 topic] 005- objectutils topic
Huawei releases harmonyos 3.0, taking another step towards "Internet of all things"
【AD学习】本次海上航行器大赛画pcb图的历程
Yield Guild Games:这一年的总结与未来展望
C语言括号匹配(栈括号匹配c语言)
大页内存原理及使用设置
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“
第二轮1000个Okaleido Tiger,再次登录Binance NFT 1小时售罄
Selenium wire obtains Baidu Index
[untitled]
Interview shock 69: is TCP reliable? Why?
Method of converting inline elements to block elements
散列表 ~
Implement Lmax disruptor queue from scratch (VI) analysis of the principle of disruptor solving pseudo sharing and consumers' elegant stopping
Wechat campus bathroom reservation of small program completion work (6) opening defense ppt
Techo hub Fuzhou Station dry goods attack | talk with developers about new industrial intelligence technology