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

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

问题描述

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

解决方案

解决方案如下:

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

  1. 在发布 HTML 报告插件中粘贴完整路径:

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

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

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 报告文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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