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密钥的子模块存储库具有正确的访问权限. (编辑:吉安站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows10 安装python.msi出现error 2502/2503解决方法
- Windows – Win7 Virtualbox在尝试启动虚拟机时出现此错误:
- 在WIN32中的“BUTTON”类窗口上显示位图
- winapi – 我可以从DLL中删除数字签名吗?
- 找出占用Installer 目录空间的元凶
- Windows 下安装 Node.js
- windows-phone-8.1 – 升级到最新Windows Phone 8.1后无法发
- 使用dll和java jni4net时出现UnsatisfiedLinkError异常
- windows – 为什么没有64位版本的VS2013?
- row_number()在hql中的分区
- 批处理文件 – 以编程方式更改和刷新图标(无需重
- npm ERR!注册表错误解析json – 尝试在Windows
- Windows Containers 大冒险: 优化计划(Dockerfil
- 如何在Windows上确定是否安装了C/C++编译器
- windows – 如何通过apt-cyg安装cygwin / X
- 汇编 – 我的.exe程序不是我的预期
- windows10 安装python.msi出现error 2502/2503解
- windows – 为什么输出传输时某些“for”命令不起
- cmd – 如何为特定应用程序强制传出ip? ForceBi
- 无法找到MSVCP120D.DLL或0x00007启动错误的解决方
