Jenkins无法在从机上生成HTML Report文件夹 [英] Jenkins could not generate HTML Report folder on slave-machine

查看:543
本文介绍了Jenkins无法在从机上生成HTML Report文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Jenkins生成HTML报告(量角器测试),但是它说 错误:指定的HTML目录'x/y/z/Reports'不存在".但是当我在奴隶上运行时,生成了报告. 我需要在Jenkins配置上执行什么操作,请对此提供帮助.
*路径正确,但无法在从属服务器上生成"Reports"文件夹. 我正在使用-"protractor-html-screenshot-reporter"

解决方案

这是解决方案:

  1. 点击工作区按钮并导航,直到出现HTML报告文件夹.
  2. 复制完整路径(即使看起来像在项目之前一样):

  1. 按照发布HTML"报告插件中的原样粘贴完整路径:

记住! Bash脚本字段上的位置路径/配置(即使正在运行:cd/././.等),也不会影响Jenkins页面上的其余配置设置.

这就是为什么需要完整路径的原因.

I am trying to generate HTML reports(Protractor Test) through Jenkins but it says "ERROR: Specified HTML directory 'x/y/z/Reports' does not exist". but when i run on the slave reports were generated. What do i need to do on the Jenkins Configuration, please help on this.
*Path is correct but it could not generate "Reports" folder on the slave. I am using- "protractor-html-screenshot-reporter"

解决方案

This is the solution:

  1. Click on Workspace Button and navigate until the HTML report folder appears.
  2. Copy the full path (Even though it looks like it's before the project):

  1. Paste the full path as is in the Publish HTML report plugin:

Remember! Location path / configuration on Bash script field (even running: cd /././. etc.) Does not affect the rest of the configuration settings on the Jenkins page.

This is why a full path is needed.

这篇关于Jenkins无法在从机上生成HTML Report文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆