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

Usage plugin does not handle duplicate jobNames in folder paths properly.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: plugin-usage-plugin
    • Labels:
      None
    • Environment:
      Jenkins-2.121.3
      cloudbees-folder-6.4
      plugin-usage-plugin-0.4
    • Similar Issues:

      Description

      Plugin usage only reports last job where job has duplicate names

      This is a problem if you have two jobs with same name in different folders.

      Steps to recreate:
      Add plugins, Create 2 folders (admin/Sandbox/Job1, admin/Verify/Job1)

      Inside each folder, create a job "Job1", with a plugin.

      Check Plugin Usage.

      Only see: Job1 http://${JENKISN_URL}/job/admin/job/Verify/job/Job1

      Delete the one reported found job, Check Plugin Usage.

      Only see: Only see: Job1 http://${JENKISN_URL}/job/admin/job/Sandbox/job/Job1

       

      Note: Not convinced Jenkins should allow multiple jobs w/ same name (ie: what happens when you move to same location), but it does, so plugin should handle properly.

      1) Report fullName (ie w/folder path)

      2) Report all jobs as a result with a correct Job count.

       

        Attachments

          Issue Links

            Activity

            Show
            froque Filipe Roque added a comment - https://github.com/jenkinsci/plugin-usage-plugin/pull/12

              People

              Assignee:
              froque Filipe Roque
              Reporter:
              ianw Ian Williams
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: