从詹金斯Jenkins工作产生的吸引力报告返回404

问题描述

我正在尝试将CureOS7上的Jenkins与allure report插件一起用于使用TestNg和Allure测试适配器的Java maven项目。测试运行良好,并且按预期生成了诱人的结果。我在Jenkins文件中的构建步骤是

post {
    always {
        script {
            allure([
                commandline: 'allure',includeProperties: false,jdk: '',properties: [],reportBuildPolicy: 'ALWAYS',results: [[path: target/allure-results]]
            ])
        }
    }
}

我可以在构建之前看到一个小诱惑图标,当我单击它时,我会被路由到http://xxx.xx.x.xx/index.html#404,其中包含以下信息:

URI: /index.html
STATUS: 404
MESSAGE: Not Found
SERVLET: Stapler

在Jenkins构建日志中,我看到以下内容:

$ /bin/allure generate "/home/path/to/job/target/allure-results" -c -o "/home/path/to/job/allure-report"
WARN: No current version specified. Use `allure switch <version>` to select version of the report.
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Finished: SUCCESS

当我尝试使用allure serve手动生成吸引力报告时,可以在浏览器中查看HTML报告。但Jenkins工作返回了404。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...