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

Build history not copied after renaming the job's parent folder when using custom build directories

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.46.3; Mac OS X

      If you have configured Jenkins to use custom build directories and then rename a folder, the builds from any jobs in those folders are not correctly copied to the target folder.

      Steps to reproduce

      1. Configure Jenkins to use a custom build directory
      2. Create a folder
      3. In that folder, create a freestyle job
      3.1. Add a shell step with the text "artifact.txt"
      3.2. Add a post-build action to archive the artifacts
      4. Run the freestyle job
      5. See that the builds are showing up in the custom build directory
      6. Rename the folder
      7. Navigate to the job in the new folder
      8. Click on the build run earlier

      Actual Result

      The build logs and artifacts are missing from build #1 as seen in the screen shot after rename. Furthermore, if you restart Jenkins, the build history is completely lost.

      Expected Result

      The build logs and artifacts should not be lost. Restarting Jenkins should not result in the loss of build history.

          [JENKINS-44657] Build history not copied after renaming the job's parent folder when using custom build directories

          Ryan Campbell created issue -
          Ryan Campbell made changes -
          Summary Original: Build history incorrectly copied when renaming the job's parent folder New: Build history not copied after renaming the job's parent folder when using custom build directories
          Ryan Campbell made changes -
          Description Original: If you have configured Jenkins to use custom build directories and then rename a folder, the builds from any jobs in those folders are not correctly copied to the target folder.

          h2. Steps to reproduce

          1. Configure Jenkins to use a custom build directory
           2. Create a folder
           3. In that folder, create a freestyle job
           3.1. Add a shell step with the text "artifact.txt"
           3.2. Add a post-build action to archive the artifacts
           4. Run the freestyle job
           5. See that the builds are showing up in the custom build directory
           6. Rename the folder
           7. Navigate to the job in the new folder
           8. Click on the build run earlier

          h2. Actual Result
          The build logs and artifacts are missing. Furthermore, if you restart Jenkins, the build history is completely lost.

          h2. Expected Result
          The build logs and artifacts should not be lost. Restarting Jenkins should not result in the loss of build history.
          New: If you have configured Jenkins to use custom build directories and then rename a folder, the builds from any jobs in those folders are not correctly copied to the target folder.
          h2. Steps to reproduce

          1. Configure Jenkins to use a custom build directory
           2. Create a folder
           3. In that folder, create a freestyle job
           3.1. Add a shell step with the text "artifact.txt"
           3.2. Add a post-build action to archive the artifacts
           4. Run the freestyle job
           5. See that the builds are showing up in the custom build directory
           6. Rename the folder
           7. Navigate to the job in the new folder
           8. Click on the build run earlier
          h2. Actual Result

          The build logs and artifacts are missing from build #1 as seen in the screen shot after rename. Furthermore, if you restart Jenkins, the build history is completely lost.
          h2. Expected Result

          The build logs and artifacts should not be lost. Restarting Jenkins should not result in the loss of build history.
          Ryan Campbell made changes -
          Link New: This issue is duplicated by JENKINS-33941 [ JENKINS-33941 ]
          rsandell made changes -
          Assignee New: rsandell [ rsandell ]
          rsandell made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          rsandell made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          rsandell made changes -
          Remote Link New: This issue links to "PR 2932 (Web Link)" [ 17180 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-17138 [ JENKINS-17138 ]
          Daniel Beck made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Resolution Original: Won't Fix [ 2 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            rsandell rsandell
            recampbell Ryan Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: