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

Unable to restore job deleted in folder (nested job)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.235.5
      jobConfigHistory 2.26

      No option to restore a job when job was inside a folder (ie: <folder>/<job>), a nested job

      Steps to reprocude
      install Jenkins LTS, install JCH plugin
      Create a folder "folder"
      Create a FreeStyle job at root level
      Create a 2nd Freestyle job NestedJob inside folder
      Delete both jobs
      Attempt to restore via ${JENKINS_URL}/jobConfigHistory/?filter=deleted.
      There is no option to restore on main page or after selecting job.

      See image:

        1. JCH-D0.png
          JCH-D0.png
          21 kB
        2. JCH-D1.png
          JCH-D1.png
          41 kB
        3. JCH-D2.png
          JCH-D2.png
          26 kB
        4. JCH-D3.png
          JCH-D3.png
          21 kB
        5. JCH-D4.png
          JCH-D4.png
          21 kB
        6. JCH-D4.png
          JCH-D4.png
          21 kB

          [JENKINS-63606] Unable to restore job deleted in folder (nested job)

          Ian Williams added a comment - - edited

          Messing around with the location of the "deleted" records on the FS, moving the job to the root level is restorable.

          Moving the jobs into the folder and they are not.

          Ian Williams added a comment - - edited Messing around with the location of the "deleted" records on the FS, moving the job to the root level is restorable. Moving the jobs into the folder and they are not.

            stefanbrausch Stefan Brausch
            ianw Ian Williams
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: