• 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目录里的。



  • 相关阅读:
    yii主题
    aptana studio 使用技巧整理
    big database url
    yii表单输入元素
    下载,和scp上传问题
    对缓存的思考——提高命中率
    php用户名密码
    openx -书表添加字段
    搜索
    python——常用模块2
  • 原文地址:https://www.cnblogs.com/hwajie/p/7681091.html
Copyright © 2020-2023  润新知