我正在尝试在Windows Server 2012计算机上设置Jenkins,而且我遇到了很多困难.
我做过的事情:
id_rsa,和id_rsa.pubknown_hosts为bitbucket.org 创建了一个文件,使用ssh.exe -T bitbucket.org并接受添加主机.E:到系统范围的HOME变量C:/Windows/SysWOW64/config/systemprofile/.ssh,以及E:/.sshC:/Program Files (x86)/Jenkins/jobs/MyProject/workspace/然而它仍然坚持着
Building in workspace C:\Program Files (x86)\Jenkins\jobs\MyProject\workspace
Checkout:workspace / C:\Program Files (x86)\Jenkins\jobs\MyProject\workspace - hudson.remoting.LocalChannel@13ca972
Using strategy: Default
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Run Code Online (Sandbox Code Playgroud)
我已经给了它大约20分钟,所以这不是回购问题的速度/大小.如果我取消,这是返回的内容:
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\Git\bin\git.exe fetch -t …Run Code Online (Sandbox Code Playgroud) 我在Win 2008服务器计算机上设置Jenkins,并且在配置Jenkins以连接到GitHub时遇到一些麻烦.我收到以下错误:
Command "git.exe fetch -t git@github.com:USER/REPO.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: Permission denied (publickey).
fatal: The remote end hung up unexpectedly
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:950)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:908)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:908)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1184)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:537)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:425)
at hudson.model.Run.run(Run.java:1376)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)
Run Code Online (Sandbox Code Playgroud)
我检查过的事情
Jenkins配置设置
msysgit工作,但CMD提示不会 当我导航到有效的仓库并从DOS提示符执行命令时,它也会失败. …
我在github上有一个私有仓库,访问权限由部署ssh密钥对控制.现在我想为CI设置只读访问权限.
我搜索了这个: Github:只读访问私人仓库
但仍然无能为力.
有人可以告诉我怎么做吗?
提前致谢!