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

Jenkins: JUnit Plugin: publish results doesn't show trend report until successful build

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • junit-plugin
    • None

      Jenkins: JUnit Plugin: publish results doesn't show trend report until successful build

      Occured on Jenkins ver. 1.642.3 using JUnit Plugin 1.19

      I’ve added a post build step “Publish jUnit test result report” (see screenshot) and run 30 builds. The builds all contain test results, but no test result trend appears in the project page (see screenshot).

      All my builds fail because the tests fail. I saw an old issue about failing builds not showing in trend https://issues.jenkins-ci.org/browse/JENKINS-1230, and tried forcing the tests to report success. As soon as I did, the trend report showed up. Some test tools, like pytest, report failure if any tests fail, so it would be preferred if the trend report showed up even for failures.

          [JENKINS-40103] Jenkins: JUnit Plugin: publish results doesn't show trend report until successful build

          Robert Loo added a comment -

          I get the same issue. I couldn't find the answer anywhere. Thanks for posting this.

          Robert Loo added a comment - I get the same issue. I couldn't find the answer anywhere. Thanks for posting this.

          Thanks for reporting this, I still see the issue with these versions:

          Jenkins ver. 2.89.4

          JUnit Plugin 1.24

          Marcello Romani added a comment - Thanks for reporting this, I still see the issue with these versions: Jenkins ver. 2.89.4 JUnit Plugin 1.24

          Sergey Kisel added a comment -

          This seems to me very important bug (or missing feature) in case of having long-running pipelines which may not be promoted to be successful for quite a long time. If its CI/CD pipeline (Build -> Junit test -> promotion input -> staging deployment -> promotion input -> production deployment) when service is being promoted from staging environment to prod during 2 week scrum sprint cycle - its not very convenient to see trend only after 2 weeks.

           

          Sergey Kisel added a comment - This seems to me very important bug (or missing feature) in case of having long-running pipelines which may not be promoted to be successful for quite a long time. If its CI/CD pipeline (Build -> Junit test -> promotion input -> staging deployment -> promotion input -> production deployment) when service is being promoted from staging environment to prod during 2 week scrum sprint cycle - its not very convenient to see trend only after 2 weeks.  

          Udo Bellack added a comment -

          Still same issue with Jenkins 2.235.1 LTS and JUnit plugin 1.31.

          It' very annoying to temporarly run one of our 200+ gradle jobs with only failures as a work around with flag '-Dtest.ignoreFailures=true' and remove this flag afterwards.

          Is there any hope to get this fixed or to use a fix work around, e.g. a Jenkins property like '-DtestTrendReport.show=always' ?

           

          Udo Bellack added a comment - Still same issue with Jenkins 2.235.1 LTS and JUnit plugin 1.31. It' very annoying to temporarly run one of our 200+ gradle jobs with only failures as a work around with flag '-Dtest.ignoreFailures=true' and remove this flag afterwards. Is there any hope to get this fixed or to use a fix work around, e.g. a Jenkins property like '-DtestTrendReport.show=always' ?  

            Unassigned Unassigned
            mmacvicar Mark MacVicar
            Votes:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: