Jenkins Mac slave 遇到 git: 'credential-osxkeychain' is not a git command. 错误

刚开始用Jenkins,单位有一个项目,在Windows和Mac都需要编译。

 

配了一台Jenkins Master,两台agent node,一台Windows环境,一台Mac环境,都是Java Web Start启动。

Windows下从Git下载代码好好的,Mac下却报错:

git: 'credential-osxkeychain' is not a git command.

网上搜了些git-credential-osxkeychain的内容

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

我把git路径加到path,还有设置KeyChain Access中相关的密钥访问权限为所有App,还是不行。

 

不过根据它们的描述,我直接在Mac下用git命令行本来就是好的,是不是我的git命令位置不对呢?

果然,设置Jenkins Node中Git的位置为/usr/bin/git就好了,我一开始填的local目录里的。

 

 



posted @ 2017-10-17 13:04  人生是苦聚  阅读(5511)  评论(0编辑  收藏  举报