【发布时间】:2015-04-27 11:29:03
【问题描述】:
对于 Jenkins 中的 SonarQube 作业,即使某些测试可能会失败,我们仍希望继续。目前 Sonar Runner 没有启动,因为测试失败。
在 Maven 中,您只需添加 -DtestFailureIgnore = true,但我找不到 SBT 的类似内容。
我确实为 sbt 找到了 onFailure 的东西,但在任何地方都没有找到任何如何使用它的示例。这是否可以用来忽略测试失败,以便继续构建作业,以便之后启动 Sonar Runner?
或者 Jenkins 中是否有忽略构建结果的设置? 我们使用 'sbt clean coverage test coverageReport' 作为构建命令,并在构建后步骤中使用 Sonar Runner。
【问题讨论】:
标签: scala jenkins sbt sonarqube