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

Keep history of jobs config changes when they are moved across folders

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Job Config History 2.12

      When using the CloudBees Folder Plugin it is possible to move a job/item from a folder to another. Currently such operation looses the history of config changes in the job because the job config history files aren't updated/moved

      For this you probably need to implement the standard relocation handler to update job config history files accordingly: https://github.com/jenkinsci/cloudbees-folder-plugin/blob/master/src/main/java/com/cloudbees/hudson/plugins/folder/relocate/StandardHandler.java

          [JENKINS-30828] Keep history of jobs config changes when they are moved across folders

          Jesse Glick added a comment -

          No, use ItemListener.onLocationChanged.

          Jesse Glick added a comment - No, use ItemListener.onLocationChanged .

          Folder have an additional hierarchical layout. At the moment this layout isn't implemented yet and it isn't very simply to solve that.

          Normally jobs are stored under jobs/JOBNAME.
          When moving to an folder, it's stored under jobs/FOLDERNAME/jobs/JOBNAME.

          Jochen A. Fürbacher added a comment - Folder have an additional hierarchical layout. At the moment this layout isn't implemented yet and it isn't very simply to solve that. Normally jobs are stored under jobs/JOBNAME. When moving to an folder, it's stored under jobs/FOLDERNAME/jobs/JOBNAME.

          Easiest way would be to track the movement and then just move the old files with the job. It shouldn't be too bad at least when you move stuff inside a folder.

          Kalle Sirkesalo added a comment - Easiest way would be to track the movement and then just move the old files with the job. It shouldn't be too bad at least when you move stuff inside a folder.

            mfriedenhagen Mirko Friedenhagen
            aheritier Arnaud Héritier
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: