CentOS6下Jenkins连接Git服务器出错解决

前端之家收集整理的这篇文章主要介绍了CentOS6下Jenkins连接Git服务器出错解决前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

今天在CentOS6下研究GitLab+Jenkins自动集成时,出现
Failed to connect to repository : Command “git config –local credential.helper store –file=/tmp/git2956041026506359040.credentials” returned status code 129:
stdout:
stderr: error: unknown option `local’
错误

发现时CentOS6安装的GIT版本时1.7.1所致,因yum源版本太旧,因此下载源码手动编译之:

# yum remove git
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y
# yum install gcc perl-ExtUtils-MakeMaker -y
# wget https://www.kernel.org/pub/software/scm/git/git-2.7.1.tar.gz
# tar -xzvf git-2.7.1.tar.gz
# cd git-2.7.1
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# ln -s /usr/local/git/bin/git /usr/bin/git

局域网内利用GitLab+Jenkins自动生成GitBook并发布(Nginx) http://www.linuxidc.com/Linux/2016-05/131136.htm

Linux+Git+Maven+Jenkins+Neuxs自动化编译环境搭建 http://www.linuxidc.com/Linux/2016-02/128652.htm

使用Jenkins配置Git+Maven的自动化构建 http://www.linuxidc.com/Linux/2016-02/128641.htm

Jenkins+Maven+Git搭建持续集成和自动化部署的配置手记 http://www.linuxidc.com/Linux/2015-06/118606.htm

Jenkins的分布式构建及部署——节点 http://www.linuxidc.com/Linux/2015-05/116903.htm

Jenkins 的详细介绍请点这里
Jenkins 的下载地址请点这里

本文永久更新链接地址http://www.linuxidc.com/Linux/2016-05/131364.htm

猜你在找的CentOS相关文章