Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41728

Unexpected behavior when TestReport or TestResults is not available in a specific build of a Jenkins job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • java-client-api
    • None

      Unexpected behavior when TestReport or TestResults is not available in a specific build of a Jenkins job

      Here's what i am trying to do:

      I want to print the passCount, failCount and skipCount for the last 5 builds for a specific job. There are some jobs in our system that has failed even before the test starts hence the testReport and results are not available. I would be able to do a null check if they are not available in the build.

      Here' what i am doing:

      If(specificBuild.details().getTestResult() != null){
      //capture test pass, fails and skip count
      }

      For some reason this does not work as expected. Please fix. Also, please let me know if i am missing anything. Thanks in advance.

            khmarbaise Karl-Heinz Marbaise
            sharathshashidhar Sharath Shashidhar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: