Windows上Jenkins的git插件不使用带子模块的凭据
|
我在 Windows上使用git与Jenkins有问题,我可以使用ssh凭据从BitBucket获取git存储库,但是当它尝试获取同一帐户上的子模块存储库时,我获得了权限异常. 从git@bitbucket.org获取上游更改:mycomp / at.git
Please make sure you have the correct access rights
and the repository exists.
Clone of 'git@bitbucket.org:mycomp/portal_air.git' into submodule path 'include/portal_air' failed
hudson.plugins.git.GitException: Command "C:CIGitbingit.exe submodule update" returned status code 1:
stdout:
stderr: Cloning into 'include/portal_air'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of 'git@bitbucket.org:mycomp/portal_air.git' into submodule path 'include/portal_air' failed
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1406)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:87)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:741)
at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:77)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:908)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
at hudson.model.Run.execute(Run.java:1684)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
是的,这是克隆项目及其子模块时遇到的问题.
我使用https而不是git @来克隆repos,git scm插件只将通过jenkins传递的凭据应用到主模块而不是子模块. 现在,您正尝试通过git @访问并仍然获得权限被拒绝,您能否确保该帐户对您添加了ssh密钥的子模块存储库具有正确的访问权限. (编辑:南阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows-7 – 无法完成操作,因为文件夹或其中的文件在另一个
- 标签为Windows的SSH工具?
- windows-ce – Windows CE的应用程序开发
- SFG_Window
- windows – Win32:窗口在整个生命周期内都有相同的HDC吗?
- 在Windows上连接到GitHub时出现问题,甚至是通过PuTTY连接
- windows – 启动进程时“print”和“printo”动词之间有什么
- win10上部署Hadoop-2.7.3——非Cygwin、非虚拟机
- .net – Windows Azure上的AspPDF和AspJPEG
- .net – 在Win32/COM方法上调用PInvoke时,通常有一个明显的
- 如何正确使用MSBuild社区任务库在.NET dll上设置
- windows-mobile – Visual Studio 2010 Professi
- NonSerialized 字段如果在dll 中读到数据写入Mon
- Windows Python:为什么第一个打开的窗口未显示为
- Microsoft Dynamics(Navision)vs C#.NET
- batch-file – 用于在Windows 7中更改屏幕分辨率
- Windows10操作系统如何在局域网设置打印机共享
- Windows 10 下彻底关闭 Hyper-V 服务
- 身份验证错误 要求的函数不受支持 Windows远程桌
- windows – 在matlab中监视内存
