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

Git Plugin breaking local checkout after upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins v2.319.3
      Git Plugin v4.11.3

      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

            markewaite Mark Waite
            swati_chugh Swati Chugh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: