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

Automatically remove the cache created on disk when lightweight checkout is used

      The %JENKINS_HOME%\caches\git-<sha> directories are created by Pipeline jobs -I believe that ONLY when doing a lightweight checkout.

      The sha in the name of the directory %JENKINS_HOME%\caches\git-<sha> represent a key for a specific remote that is calculated from the remote URL: "git-" + hudson.Util.getDigestOf(<remote>). Each directory corresponds to a specific repository. If many jobs are cloning the same repository, they all point to the same "cache" directory.

      The problem comes when the repository are very large, which can produce to fill the disk space as there not seem to be any automatic mechanism for deleting these files.

          [JENKINS-48631] Automatically remove the cache created on disk when lightweight checkout is used

          Félix Belzunce Arcos created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Component/s New: scm-api-plugin [ 18054 ]
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CD-384 (Web Link)" [ 19718 ]

            Unassigned Unassigned
            fbelzunc Félix Belzunce Arcos
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: