1、下载安装jenkins
https://www.w3cschool.cn/jenkins/jenkins-79ex28jh.html
2、安装完成后新建ltem,选择自由样式后确定


3、进行创建ltem,配置--构建--命令。将newman命令复制粘贴即可保存,newman命令可参考1.3

4、回到ltem中,Build Now即可运行,红色代表失败,蓝色成功,失败具体可查看控制台输出

如果运行报Build step 'Execute Windows batch command' marked build as failure,可参考:https://blog.csdn.net/ouyanggengcheng/article/details/77337694
解决方法:构建命令前面加上call,最后加上exit 0

如果运行报‘newman‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。可参考:https://blog.csdn.net/Anita__Li/article/details/106212887?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-2&spm=1001.2101.3001.4242

5、运行成功后,可到对应jenkins\workspace\ltem名下查看报告


定时任务设置
1、在任务配置中,滚动到构建触发器-->勾选"Build periodically"-->在输入框中配置触发时间
配置时间可参考:https://www.cnblogs.com/hong-fithing/p/10547176.html

邮件发送设置(163.com、qq.com)
1、常见错误总结:
报错550、535、553,可参考https://www.cnblogs.com/amosli/p/3549918.html
网友评论