Git Plugin breaking local checkout after upgrade

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      After upgrading Jenkins git plugin as per security advisory https://www.jenkins.io/security/advisory/2022-05-17/, git clone operation from local copy started to fail. 

      ERROR: Checkout of Git remote 'file:///mnt/jenkins/git_repo/****' aborted because it references a local directory, which may be insecure. You can allow local checkouts anyway by setting the system property 'hudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT' to true.

      Tried setting below System Property but it did not help. We need to use local copy as we dont want to checkout every-time from remote to avoid rate limit issues.

      hudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true

            Assignee:
            Mark Waite
            Reporter:
            Swati Chugh
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: