今天对清掉了Jenkins中项目的工作空间,结果构建出现“ERROR: Error fetching remote repo 'origin'”问题:网上各种找也没找到解决这个问题的方法. 后来看错误之前是“> git.exe config --local --remove-section credential # timeout=10”,不会是跟密码有关吧! 于是将url改成http://用户名:密码@ip/的格式,git配置改成不使用密码,结果OK了.…
Started by user Allen Running as Allen Building remotely on MISTestSrv2 (MIS) in workspace C:\jenkins_slave\workspace\MIS-WebPrint-Source\MIS-TEST-Uniqlo-Source > C:\Program Files (x86)\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Fet…
ERROR: Error fetching remote repo 'origin' Finished: FAILURE // 原因如下 原因一:可能是配置的git分支的权限问题,检查一下配置里面的源码管理项的Credentials,修改为正确的账号即可 原因二:可能是Jenkins有个工作空间( workspace)的概念,Jenkins构建时产生的缓存会保存到工作空间里,把缓存清理掉就好,在构建后操作这一项,新增Delete workspace when build is done步骤…
Jenkins上现有的git插件并没有配置超时的选项,因此在clone项目时如果网络差会出现“ERROR: Timeout after 10 minutes”,导致无法继续构建. 网上找到一个解决方法:http://jenkins-ci.361315.n4.nabble.com/Windows-git-plugin-git-client-plugin-problems-td4690288.html 启动Jenkins的时候加上 -Dorg.jenkinsci.plugins.gitclient.…
错误如上,解决方法收集,可以尝试以下方法: http://stackoverflow.com/questions/38391601/jenkins-error-error-fetching-remote-repo-origin https://issues.jenkins-ci.org/browse/JENKINS-26757 http://www.nikest.com/web/jswd/2015/0325/158565.html http://www.mamicode.com/info-det…
说明:这个没有实际的解决方法,只提供一个思路去解决. 操作系统:windows 背景:在配置的节点之后,由于是windows的系统,运行git克隆地址,使用的是SSH协议地址.出现如下的错误: Error cloning remote repo 'origin' 解决思路: 1.第一时间发现应该是权限问题,那么可以切换成git协议或者https的协议去获取. 2.如果不是协议的问题,看是不是git的路径错了导致的,再次配置节点的机器上的git路径. 3.如果是linux的机器,就要去确定是不是S…
在slave上是git clone ssh是可以成功的,但是jenkins调用slave节点就报如下错误: ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Could not init C:\lebo\workspace\repo1 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:717)…
Jenkins控制台输出报错 输出ERROR: Error cloning remote repo 'origin' 这行报错只能说明是git有问题,其他没什么有用的信息. 浏览器中Ctrl+F查找ERROR,提示No such file or directory.怀疑git路径设置有问题 Jenkins配置git的绝对路径 系统管理--->全局工具管理--->git 重新构建问题还是没解决 节点问题 Jenkins配置了2个节点,但是只有master安装了git,很有可能任务被调到slave…
使用jenkins pull git上的代码,在job中配置好源码管理后,构建时出现如题错误提示: 网上的资料几乎都是在说SSH的配置问题,因为博主项目建立在本地的git服务器上,所以在源码管理中选择的验证方式并不是SSH,可以排除SSH配置问题. 经过筛查,发现问题在Jenkins —> Global Tool Configuration 中,Git启动文件的路径上,一开始博主以为该路径是针对jenkins服务器上的git工具(显然完全错误),这个路径是所有节点上的Git安装路径,如果只Add…
1. 首先登陆linux机器 2. 切换到jenkins用户 3. 生成ssh key  ssh-keygen -t rsa -C 'amysu@acxiom.com'   4. 将生成的ssh key添加到gitlab profile中   5. 测试下ssh key是否工作  cd /tmp/  git clone git@gitlab.ap.acxiom.net:unilever/tianyan.git   在jenkins配置页面,新增credential,将前一步生成的ssh key添…