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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • plugin-usage-plugin
    • None
    • Jenkins-2.121.3
      cloudbees-folder-6.4
      plugin-usage-plugin-0.4

      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.

       

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

              Created:
              Updated:
              Resolved: