Jenkins 使用旧 json 文件生成魅力报告

Jenkins generate allure report with old json files

我在 Jenkins 中使用 2.26.0 版本的 allure 插件。 我创建了一个 job with next configuration 在我 运行 它之后,我在 Jenkins 的 allure report 中什么也看不到。 因为当我从 Jenkins 运行 它只在我本地机器上的文件夹项目中的文件夹 'allure-results' 中创建这个文件。 如果我手动清理此文件夹并从 NetBeansit 运行 我的本地项目,它将在文件夹 'allure-results'. After that, I can generate my report from cmd line and I can see my beautiful report there.

中创建正确的 .json 文件

为什么 Jenkins 没有为 allure 报告生成正确的 .json 文件? 如何在 Jenkins 中使用正确的 .json 文件构建我的魅力报告?

谢谢, 阿纳斯塔西娅

问题是因为我在 pom.xml 中使用的配置文件。 我应该delete it.

或者不删除它,只在 Jenkins 中设置配置文件: -P${profileName}