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

            jochenafuerbacher Jochen A. Fürbacher created issue -
            drulli Ulli Hafner added a comment -

            Is there another plugin involved to build multiple branches?

            drulli Ulli Hafner added a comment - Is there another plugin involved to build multiple branches?

            Yes, Pipeline Multibranch Plugin 2.14.

            jochenafuerbacher Jochen A. Fürbacher added a comment - Yes, Pipeline Multibranch Plugin 2.14.
            drulli Ulli Hafner made changes -
            Field Original Value New Value
            Component/s workflow-multibranch-plugin [ 21465 ]
            drulli Ulli Hafner made changes -
            Description When we have several branches in one project, 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.
            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.
            jglick Jesse Glick made changes -
            Component/s workflow-multibranch-plugin [ 21465 ]
            Labels multibranch
            drulli Ulli Hafner made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 17269 ]
            drulli Ulli Hafner added a comment -

            I'm trying to consolidate the requirements for the static analysis suite in pipeline jobs in a wiki page. Can you please read it carefully and comment or change it accordingly?

            drulli Ulli Hafner added a comment - I'm trying to consolidate the requirements for the static analysis suite in pipeline jobs in a wiki page . Can you please read it carefully and comment or change it accordingly?
            klaus_wening Klaus Wening added a comment -

            We encounter the same problem for our setup. 

            • Jenkins 2.71
            • Multibranch-Pipeline (Pipeline Multibranch 2.16)
            • Pipeline Maven Integration Plugin 2.5.2

             

            klaus_wening Klaus Wening added a comment - We encounter the same problem for our setup.  Jenkins 2.71 Multibranch-Pipeline (Pipeline Multibranch 2.16) Pipeline Maven Integration Plugin 2.5.2  
            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 made changes -
            Labels multibranch analysis-core-2.0
            drulli Ulli Hafner made changes -
            Labels analysis-core-2.0
            drulli Ulli Hafner made changes -
            Epic Link JENKINS-49911 [ 188901 ]
            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?
            drulli Ulli Hafner made changes -
            Rank Ranked lower
            drulli Ulli Hafner made changes -
            Rank Ranked higher
            drulli Ulli Hafner made changes -
            Rank Ranked higher
            drulli Ulli Hafner made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            drulli Ulli Hafner made changes -
            Rank Ranked lower
            drulli Ulli Hafner made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]

            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: