Just starting with Jenkins, the unit has a project that both Windows and Macs need to compile.
Equipped with a Jenkins Master, two agent node, a Windows environment, a MAC environment, all Java Web start start.
Download code from git under Windows Well, the Mac has an error:
git: ' Credential-osxkeychain ' is not a git command.
I searched some git-credential-osxkeychain on the internet.
Https://stackoverflow.com/questions/13661354/github-for-mac-error-git-credential-osxkeychain-is-not-a-git-command
Https://stackoverflow.com/questions/35809630/jenkins-git-plugin-with-git-lfs-fails-with-bad-credentials-on-mac-slave
I add the git path to path and set keychain access to the associated key to all apps, or not.
However, according to their description, I use the git command line directly under the Mac is good, is not my git command location is wrong?
Sure enough, the location of git in Jenkins node is/usr/bin/git, and I started filling in the local directory.
Jenkins Mac slave encountered git: ' Credential-osxkeychain ' is not a git command. Error