TeamCity 构建报告 HTML 页面未加载 CSS/JS

TeamCity Build Reports HTML pages not loading CSS/JS

我正在关注此 link 以在构建报告选项卡中显示黄瓜 HTML 报告。

https://confluence.jetbrains.com/display/TCD18/Including+Third-Party+Reports+in+the+Build+Results

在我的构建配置中,我将我的工件称为

api/target/cucumber-html-reports/cucumber-html-reports/** => report.zip

在项目中,报表选项卡"Start Page"是这样的

report.zip!/overview-steps.html

选项卡已生成,我看到了 HTML 页面。但它不会加载 CSS/JS,也不会让我导航到 hyperlinks 到其他页面。

单击任何 link

时出现以下错误

403 Forbidden: Requests from build artifacts pages are restricted: Only requests to the same build's artifacts are allowed from the build artifacts.

问题是 TeamCity 自动生成 "Build configuration ID" CamelCase 命名约定。当“报告”选项卡尝试使用驼峰式大小写访问工件时 URL 它没有找到任何东西。

我将我的项目和构建配置 ID 更改为全部小写并且运行顺利。我希望这对某人有所帮助。