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

          As far as I see this particular behaviour has been there for a while:

          Victor Martinez added a comment - As far as I see this particular behaviour has been there for a while: commit JENKINS-18393

          Jesse Glick added a comment -

          Jesse Glick added a comment - CC olivergondza

          this behavior still persists in lts

          Vyacheslav Bogachenkov added a comment - this behavior still persists in lts

          Allan C added a comment -

          v2v Hi Victor. I am new to Jenkins Developer Community and I am trying to start with some simple bug fix. I wonder if you are still working on this issue? If not, I am happy to take it over if you can kindly give me some hints about where to look for in the codebase. Many thanks!

          Allan C added a comment - v2v Hi Victor. I am new to Jenkins Developer Community and I am trying to start with some simple bug fix. I wonder if you are still working on this issue? If not, I am happy to take it over if you can kindly give me some hints about where to look for in the codebase. Many thanks!

          allanc, thanks for asking, actually If I did work on this i already lost track, so please feel free to assign yourself and work on this. Thanks for supporting the project and work on this. 

          Victor Martinez added a comment - allanc , thanks for asking, actually If I did work on this i already lost track, so please feel free to assign yourself and work on this. Thanks for supporting the project and work on this. 

          Allan C added a comment -

          v2v Thank you. I wonder if anyone can offer some advice regarding which part of the core I should look into. Are there any documentations that I should be aware of? 

          Allan C added a comment - v2v Thank you. I wonder if anyone can offer some advice regarding which part of the core I should look into. Are there any documentations that I should be aware of? 

          Vishal added a comment -

          Hey, allanc  I would like to work on this for next few days Hope it's not a problem, I am assigning myself to it, If I am not able to fix, I will reassign you.

          Vishal added a comment - Hey, allanc   I would like to work on this for next few days Hope it's not a problem, I am assigning myself to it, If I am not able to fix, I will reassign you.

          Vishal added a comment -

          Jobs are listing as expected

          Vishal added a comment - Jobs are listing as expected

          Jesse Glick added a comment -

          Cannot be Fixed when there is no linked fix. Did you mean Works for me or similar?

          Jesse Glick added a comment - Cannot be Fixed when there is no linked fix. Did you mean Works for me or similar?

          Vishal added a comment - - edited

          Right, It shouldn't be closed,
          But for discussion kindly see Issue

          The issue have committed changes
          It seems that the issue have been fixed there, also yes while testing the exact same configuration it worked for me see Pull request

          Vishal added a comment - - edited Right, It shouldn't be closed, But for discussion kindly see Issue The issue have committed changes It seems that the issue have been fixed there, also yes while testing the exact same configuration it worked for me see Pull request

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

              Created:
              Updated:
              Resolved: