刚开始用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. 错误

 

 



相关文章:

  • 2021-12-15
  • 2021-10-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
相关资源
相似解决方案