Title: Message Title
Rory Dungan commented on JENKINS-52857
Re: Cannot find git-lfs when it is not installed in /usr/bin/
Had the same problem on Mac. Setting environment variables in the node properties didn't seem to help since it looks like they are applied to "Execute shell" job stages but not the checkout stage. Another workaround I found is to create a shell script that sets the PATH variable and then runs Git:
#!/bin/sh
export PATH=/usr/local/bin:$PATH
git "$@"
Then in the Jenkins node properties screen, set the Git executable to that script: Feels like a bit of a hack but hopefully someone else finds it useful
Add Comment
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.192786.1533214686000.9885.1575244260548%40Atlassian.JIRA.