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

Multibranch workspace path to match job folder workspace path

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins version: 2.516.3
      Pipeline: Multibranch
      Version821.vc3b_4ea_780798

      Currently on our Jenkins controller it looks like when you use a multibranch job that it writes the workspace to the root of the workspace directory even if the multibranch is inside of a folder. I think it would be more desirable to write that inside of the folder that the multibranch job lives in like other jobs get written to (because in our case we have folders for various teams and its nice to be able to see which ones are taking up the most space, but with the multibranches being written outside of that its hard to track down which team it belongs to especially with the truncated workspace name multibranch jobs get)

      For example this is what our workspace directory looks like currently, so instead of being just the folders with all the workspaces inside of that its got a mix of all multibranch workspaces and then the folders.

      msp-jenkins-prod:/var/jenkins_home/workspace# ls -lah
      total 24K
      drwxr-xr-x 24 root root 4.0K Oct  5 13:00 .
      drwxr-xr-x 23 root root 8.0K Oct  6 17:10 ..
      drwxr-xr-x  4 root root  238 Oct  5 13:00 GT-5255_Renaming_ProtoC_Binaries_libs
      drwxr-xr-x  4 root root   33 Feb  5  2022 a-team
      drwxr-xr-x  4 root root   33 Dec 22  2022 agent
      drwxr-xr-x  3 root root   21 Oct  2 14:33 artemis
      drwxr-xr-x  4 root root   33 Jun 20 14:08 authority
      drwxr-xr-x  4 root root  238 Oct  5 13:00 branch_pipeline_AGT-5467_git_exe_libs
      drwxr-xr-x  4 root root   33 Feb 13  2023 definitely-not-hoarders
      drwxr-xr-x  4 root root   33 Dec 12  2023 dnh
      drwxr-xr-x  4 root root   33 Oct 17  2023 domain-definitions
      drwxr-xr-x  4 root root   33 Jun 29  2022 ibp
      drwxr-xr-x  4 root root   33 Jun 27  2022 identity
      drwxr-xr-x  4 root root   33 Apr 24 14:41 it-services
      drwxr-xr-x  4 root root   33 Aug 23  2022 mi6
      drwxr-xr-x  4 root root  238 Oct  5 13:00 multibranch_pipeline_creder_test_libs
      drwxr-xr-x  4 root root   33 Jun 30  2022 nerf-herders
      drwxr-xr-x  6 root root   74 Feb  5  2022 rpg
      drwxr-xr-x  3 root root   21 Jan 10  2023 shared
      drwxr-xr-x  3 root root   21 Jan 12  2023 storage
      drwxr-xr-x  4 root root   33 Mar 24  2022 tbc-heimdall
      drwxr-xr-x  4 root root  238 Oct  5 13:00 teale_AGT-5065-use-signed-protoc_libs
      drwxr-xr-x  4 root root  238 Oct  5 13:00 tos_multibranch_pipeline_develop_libs
      drwxr-xr-x  4 root root  238 Oct  5 13:00 ultibranch_pipeline_nak_AGT-6323_libs
      -rw-r--r--  1 root root 5.6K Oct  5 13:00 workspaces.txt 

       

      Please let me know if I can provide any extra info or context for this.

            Unassigned Unassigned
            reder9 Caleb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: