• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None

      I defined the multi branch pipeline job that contains pylint execution and codenarc

      CI finished successfully and I see the links to report of pylint and codenarc, but I don't see the graph trend on the branch page.

      I use the "Warnings Next Generation Plugin" for reports.

      I run few times the same branch job, but the same result - no graph.

      Jenkinsfile ( only the relevant stages )

      ....
      stage("Static Code Analysis (Pylint check)"){
       steps{
       sh "docker run --rm -v ${WORKSPACE}/test/cfg/pylint.rc:/etc/pylint.cfg -v ${WORKSPACE}/test:/code eeacms/pylint |tee pylint.log"
       recordIssues(tools: [pyLint(pattern: 'pylint.log')])
       }
      }
      stage("Code lint"){
       steps{
       sh "docker run --rm -v ${WORKSPACE}:/ws:z -u `id -u`:`id -g` edupo/codenarc -report=html -report=xml -rulesetfiles=rulesets/basic.xml"
      recordIssues(tools: [codeNarc(pattern: 'CodeNarcXmlReport.xml')])
       }
      }
      ....
      

      When I did it in regular pipeline job type (the same jenkinsfile), I can see the trend graphs.

      What need to be done in order to see the graph in multi pipeline job type?

          [JENKINS-59960] no graph trend in multi branch job

          Ulli Hafner added a comment -

          Hmm, on our ci server charts are shown for branches as well: https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/JENKINS-57638-custom-id-origin/

          Do you have links to the results on the job level view? Or are the links only visible on the build page?
          Does the trend show up if you navigate into the results? (Example https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/JENKINS-57638-custom-id-origin/3/pmd/).

          Ulli Hafner added a comment - Hmm, on our ci server charts are shown for branches as well: https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/JENKINS-57638-custom-id-origin/ Do you have links to the results on the job level view? Or are the links only visible on the build page? Does the trend show up if you navigate into the results? (Example https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/JENKINS-57638-custom-id-origin/3/pmd/ ).

          Shurik Gefter added a comment -

          It's look like that we need at least one success build in order to see the trend graph.

          Shurik Gefter added a comment - It's look like that we need at least one success build in order to see the trend graph.

          Ulli Hafner added a comment -

          Failed builds are skipped by default. You can change that with the property ignoreFailedBuilds.

          Ulli Hafner added a comment - Failed builds are skipped by default. You can change that with the property ignoreFailedBuilds .

          Hello,

          I have the exact same issue as described. But, in my case, charts are not shown even with `
          ignoreFailedBuilds: true`. Plugin simply expects at least one passed build before any chart is displayed.
          Is there a solution to this problem?

          Domen Jurkovic added a comment - Hello, I have the exact same issue as described. But, in my case, charts are not shown even with ` ignoreFailedBuilds: true`. Plugin simply expects at least one passed build before any chart is displayed. Is there a solution to this problem?

          Ulli Hafner added a comment -

          The charts should be rendered as soon as there are two results available.

          Can you check if 2 results are stored in your case? Or are the no results stored because the build is red?

          Ulli Hafner added a comment - The charts should be rendered as soon as there are two results available. Can you check if 2 results are stored in your case? Or are the no results stored because the build is red?

          Yes, they are. Two results on a different commits are present, as their `recordIssues` results are also shown in job details page. Charts however are not visible.
          I thought this might be related to added `id` and `name` properties to `recordIssues`, but we use this in some other job and they work fine. If I somehow generate passing build, results are shown.

          Some system info:

          1. Jenkins 2.303.3
          2. wng: 9.11.1

          Domen Jurkovic added a comment - Yes, they are. Two results on a different commits are present, as their `recordIssues` results are also shown in job details page. Charts however are not visible. I thought this might be related to added `id` and `name` properties to `recordIssues`, but we use this in some other job and they work fine. If I somehow generate passing build, results are shown. Some system info: Jenkins 2.303.3 wng: 9.11.1

          Ulli Hafner added a comment -

          Hmm, maybe I have somewhere hidden in the code another guard that prevents that the results of failed builds are not shown. You can create a followup issue if you want, though the priority will not be very hight for me.

          Ulli Hafner added a comment - Hmm, maybe I have somewhere hidden in the code another guard that prevents that the results of failed builds are not shown. You can create a followup issue if you want, though the priority will not be very hight for me.

            drulli Ulli Hafner
            shurikg Shurik Gefter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: