zoukankan      html  css  js  c++  java
  • 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目录里的。



  • 相关阅读:
    python
    redis
    mongodb replica on aws ec2
    mysql
    java正则表达式
    终端make命令和Git学习
    linux和shell学习
    centos普通用户安装jenkins
    centos7普通用户安装jdk
    WPF动画
  • 原文地址:https://www.cnblogs.com/hwajie/p/7681091.html
Copyright © 2011-2022 走看看