码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2017-10-17 15:09:01      阅读:943      评论:0      收藏:0      [点我收藏+]

标签:-o   bin   ons   output   内容   img   git   web   oca   

刚开始用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目录里的。

技术分享

 

 



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

标签:-o   bin   ons   output   内容   img   git   web   oca   

原文地址:http://www.cnblogs.com/hwajie/p/7681091.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!