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

incorrect display of folder contents in list-jobs output

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • cli, core
    • jenkins-2.73.3:lts
      cloudbees-folder-6.2.1

      Hello!
      For example, my project structure:

      folder_1/folder_1_1/job_1_1
      folder_1/folder_1_2/job_1_2
      folder_1/job_1
      folder_2/folder_2_1/job_2_1
      folder_2/folder_2_2/job_2_2
      folder_2/job_2

       When i run "list-jobs" command with no parameters, the root folder is displayed correctly:

      ssh jcli list-jobs
      folder_1
      folder_2
      

      But when i run "list-jobs" command for a folder, i see:

      ssh jcli list-jobs folder_1
      folder_1_1
      job_1_1
      folder_1_2
      job_1_2
      job_1
      

      instead

      ssh jcli list-jobs folder_1
      folder_1_1
      folder_1_2
      job_1
      

      is it a bug? or am I doing something wrong?
      thank you in advance

          [JENKINS-48220] incorrect display of folder contents in list-jobs output

          Vyacheslav Bogachenkov created issue -

          Jesse Glick added a comment -

          Maybe a bug in ListJobsCommand, not sure offhand.

          Jesse Glick added a comment - Maybe a bug in ListJobsCommand , not sure offhand.
          Jesse Glick made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: cloudbees-folder-plugin [ 18137 ]
          Labels New: cli folders
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]
          Oleg Nenashev made changes -
          Labels Original: cli folders New: cli folders newbie-friendly
          Oleg Nenashev made changes -
          Component/s New: cli [ 15624 ]

          Oleg Nenashev added a comment -

          Seems to be a newbie-friendly issue for the core,
          ListJobsCommand is a part of the core codebase

          Oleg Nenashev added a comment - Seems to be a newbie-friendly issue for the core, ListJobsCommand is a part of the core codebase
          Mateus Gonçalves made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mateus Gonçalves made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Victor Martinez made changes -
          Assignee New: Victor Martinez [ v2v ]
          Victor Martinez made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            vishalghyv Vishal
            theli Vyacheslav Bogachenkov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: