詹金斯(Jenkins)多次发布相同的测试结果?

时间:2019-07-28 11:16:33

标签: jenkins groovy junit jenkins-pipeline pom.xml

要在jenkinsfile中记录测试结果,我在构建开始时使用以下行。

junit testResults: 'build/*/*/target/surefire-reports/*.xml

之后,使用

评估上述相同测试结果

junit testDataPublishers: [[$class: 'AttachmentPublisher'], [$class: 'StabilityTestDataPublisher']], keepLongStdio: true, testResults: 'build/*/*/target/surefire-reports/*.xml

完成此操作后,通过的测试结果将发布两次。发布2次相同的集成测试和3次相同的单元测试。是否有任何变通办法只能一次发布通过的测试??

0 个答案:

没有答案