To record test results in jenkinsfile I am using the line below in the start of the build:

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

To evaluate the above test results, I'm using:

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

After doing this, the passed test results are published twice:

  • twice the same integration test
  • 3 times the same Unit test

Is there any workaround to publish the passed tests only one time?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.