Jenkins和Postman 集成,使用Allure 输出测试报告

1. Jenkins 插件需要安装 Allure Jenkins Plugin

2. Global Tool Configuration 需要配置 Node 和执行 newman, Allure 报告的 npm 包。

    newman 包 如果希望指定版本可以 写成  newman@5.1.2    就是指定的 5.1.2 版本。

   newman-reporter-allure   newman 产生 Allure 报告的包

 3.工程配置

  Build enviroment ,

   需要在每次开始之前删除工作空间,要不然报告展示会不是最新的。

   指定我们配置 Allure 报告环境的 nodejs 版本。

  

  Build

   通过: -r allure --reporter-allure-export allure-results   来指定产生 allure 报告和报告产生的目录。

  

   Post-Build

   配置Allure 报告的结果目录。 

 这就是整个配置的关键点。

原文地址:https://www.cnblogs.com/xixiuling/p/13516887.html