jenkins6-运行python自动化生成html报告_未成功

HTML Publisher

系统管理-插件管理-可选插件,搜索:HTML Publisher

 勾选HTML Publisher,点【直接安装】

安装完成,已安装,可以查看刚才安装的插件;

 执行shell

执行shell里面配置生成pytest的报告,运行完成后在当前目录下生成一个a.html报告;(注意:需要创建report文件夹,不然会报错:

Specified HTML directory '/var/jenkins_home/workspace/pytest_reqeusts_1202/report' does not exist.)

 构建后操作

添加构建后操作,选择Publish HTML reports插件

  • HTML  directory to archive 是上面生成html报告的文件夹地址:report
  • Index page[s] 报告的名称:a.html
  • Report title 显示在jenkins左侧的名称,默认:HTML Report

立即构建,报错

[htmlpublisher] Archiving at PROJECT level /var/jenkins_home/workspace/pytest_reqeusts_1202/report to /var/jenkins_home/jobs/pytest_reqeusts_1202/htmlreports/HTML_20Report
ERROR: Directory '/var/jenkins_home/workspace/pytest_reqeusts_1202/report' exists but failed copying to '/var/jenkins_home/jobs/pytest_reqeusts_1202/htmlreports/HTML_20Report'
未百度到答案;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值