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

git clone fails on osx client with lfs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • Jenkins 2.176.3
      gerrit-code-review-plugin 0.4-SNAPSHOT-ca8c2fde

      This may be more a question than a bug, wasn't able to find a mailing list though for this kind of thing.

      I have setup a multibranch pipeline using the gerrit source. This is working fine on a windows client machine but is failing on an osx client machine.

      The console output of the failure is:

      "using credential 6e96f729-8440-40bf-8710-88689c791d3b
      Cloning the remote Git repository
      Cloning with configured refspecs honoured and without tags
      Cloning repository https://######/magpie
      > /usr/local/bin/git init /var/lib/jenkins/workspace/magpie-verify_13_5713_6 # timeout=10
      Fetching upstream changes from https://######/magpie
      > /usr/local/bin/git --version # timeout=10
      using GIT_ASKPASS to set credentials
      > /usr/local/bin/git fetch --no-tags --force --progress https://######/magpie +refs/heads/:refs/remotes/origin/ +refs/changes/:refs/remotes/origin/ # timeout=10
      Fetching without tags
      Checking out Revision 0d966917fd54323445d54cce6c33e3283b5dc435 (13/5713/6)
      Enabling Git LFS pull"

      I believe the error is because it cannot find the git-lfs executable but I'm not entirely certain.

      If I create a basic jenkins job and use git to clone the repository then this works fine. This works because in the node configuration I have added /usr/local/bin to the path. (I believe osx doesn't put /usr/local/bin in the path for a non-interactive ssh environment)

      My guess as to what is happening is that the custom path set on the node is not being passed to the environment. Could this be possible?

      How can I get more debug information out of job to work out why it's not working?

            lucamilanesio Luca Domenico Milanesio
            willwagner Will Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: