Ubuntu--Jenkins中配置GIT仓库 以及出现配置git时not connection 解决办法 ---

来源:互联网 发布:淘宝阿迪旗舰店是正品 编辑:程序博客网 时间:2024/05/17 04:40
原文:http://www.linuxidc.com/Linux/2015-07/120617.htm

Jenkins中配置git仓库时,提示异常为 not connection *** HEAD。原因是本地为安装Git文件和公钥;


1.在Ubuntu系统中,直接在终端运行命令  sudo apt-get install git自动安装;

2.安装完成后配置 user.name And user.email ----->new a file name is repository;---> input "git init" command  ,use this file update a Git repository---->输入ssh-keygen –t rsa命令生成ssh公钥(出现停顿按回车即可)

3.repository目录下新建一个目录gitadmin,,将代码从 oschina 通过http的方式clone下来,下面是clone成功的界面;


然后在Jenkins中配置远程地址,解决问题




0 0
原创粉丝点击