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

Multiple links and graphics when there are several branches

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • tasks-plugin
    • None
    • Task Scanner Plug-in 4.50
      Jenkins core 2.46

    Description

      When we have several branches in one project within the Pipeline Multibranch Plugin, task scanner shows multiple links to open tasks (same link), as well as the same number of graphics (the same graphics).

      See the attached screenshots.

      Attachments

        Issue Links

          Activity

            drulli Ulli Hafner added a comment -

            Did you already read the wiki page (see comment above)? There you can add additional requirements...

            drulli Ulli Hafner added a comment - Did you already read the wiki page (see comment above)? There you can add additional requirements...
            klaus_wening Klaus Wening added a comment -

            Yes, I've read the wiki page, but in our setup we don't call the plugin directly as it seems to be implicitly called by the Maven Integration Plugin.

            Here is our code in the Jenkinsfile:

            withMaven(maven: "${JOB_MVN}", jdk: "${JOB_JDK}") {
              sh "mvn clean install ..."
            }
            
            klaus_wening Klaus Wening added a comment - Yes, I've read the wiki page, but in our setup we don't call the plugin directly as it seems to be implicitly called by the Maven Integration Plugin. Here is our code in the Jenkinsfile: withMaven(maven: "${JOB_MVN}" , jdk: "${JOB_JDK}" ) { sh "mvn clean install ..." }
            drulli Ulli Hafner added a comment -

            I see. I'm planning to remove the implicit buggy maven support in future releases so you might need to call the analysis step explicitly then. So if you have additional requirement please comment on the wiki page too.

            As far as I understand your use case: you are building several branches in one job and there are multiple links for the results of the individual branches. So what is the expected result in your use case? It would help if you could clarify that on the wiki page (if not already done by someone else)...

            drulli Ulli Hafner added a comment - I see. I'm planning to remove the implicit buggy maven support in future releases so you might need to call the analysis step explicitly then. So if you have additional requirement please comment on the wiki page too. As far as I understand your use case: you are building several branches in one job and there are multiple links for the results of the individual branches. So what is the expected result in your use case? It would help if you could clarify that on the wiki page (if not already done by someone else)...
            klaus_wening Klaus Wening added a comment -

            Let me describe our setup:

            • we are using Multibranch-Pipeline Plugin or Bitbucket Branch Source Plugin to discover all branches within our git repositories.
            • these plugins automatically create one Jenkins job per branch (based on a Jenkinsfile in the root-folder)
            • each job builds separately if changes are commited to the branch
            • -> basically we have on job per branch, there's no direct connection between these

            Our expectation would be to have only one task scanner graphic "Offene Punkte Trend" on our job page (at the moment there are several identical graphics as seen in attachment taskScanner02.png)

             

            Additional information: there are several calls to "withMaven" steps (for build, unit testing, integration tests,...) within our Jenkinsfile.

            klaus_wening Klaus Wening added a comment - Let me describe our setup: we are using Multibranch-Pipeline Plugin or Bitbucket Branch Source Plugin to discover all branches within our git repositories. these plugins automatically create one Jenkins job per branch (based on a Jenkinsfile in the root-folder) each job builds separately if changes are commited to the branch -> basically we have on job per branch, there's no direct connection between these Our expectation would be to have only one task scanner graphic "Offene Punkte Trend" on our job page (at the moment there are several identical graphics as seen in attachment taskScanner02.png)   Additional information: there are several calls to "withMaven" steps (for build, unit testing, integration tests,...) within our Jenkinsfile.
            drulli Ulli Hafner added a comment -

            On which page did you get multiple results? I don't find a way to generate multiple charts on the top-level view: example. Jenkins creates a new job for each branch. Or are there multiple reports in one of these branches?

            drulli Ulli Hafner added a comment - On which page did you get multiple results? I don't find a way to generate multiple charts on the top-level view: example . Jenkins creates a new job for each branch. Or are there multiple reports in one of these branches?

            People

              drulli Ulli Hafner
              jochenafuerbacher Jochen A. Fürbacher
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: