要在jenkinsfile中记录测试结果,我在构建开始时使用以下行。
junit testResults: 'build/*/*/target/surefire-reports/*.xml
之后,使用
评估上述相同测试结果 junit testDataPublishers: [[$class: 'AttachmentPublisher'], [$class: 'StabilityTestDataPublisher']], keepLongStdio: true, testResults: 'build/*/*/target/surefire-reports/*.xml
完成此操作后,通过的测试结果将发布两次。发布2次相同的集成测试和3次相同的单元测试。是否有任何变通办法只能一次发布通过的测试??