gpt4 book ai didi

git - blueocean 中的子模块?

转载 作者:太空狗 更新时间:2023-10-29 13:01:55 39 4
gpt4 key购买 nike

我有一个蓝海项目,它使用 ssh key 获取一个 git 项目,我添加了新的 shell 命令,但它没有 pull .gitsubmodules 文件夹中的子模块:

[submodule "Assets/Engine"]
path = Assets/Engine
url = killerbros@vs-ssh.visualstudio.com:22/Game/_ssh/Engine
branch = "master"
[submodule "Assets/PlatformerModule/Extension"]
path = Assets/PlatformerModule/Extension
url = killerbros@vs-ssh.visualstudio.com:22/Game/_ssh/PlatformerModule
branch = "master"

我尝试为 git submodule init 和 git submodule update 添加 shell 命令,但由于身份验证,它在 gitsubmodule update 上失败:

Cloning into '/Users/Shared/Jenkins/Home/workspace/Platform_master-6J2EI5MV24CJ5OZMBARB5I3D276FBUM4RTXAZNAML5SYUAR7S3YA/Assets/Le'... Permission denied, please try again. Permission denied, please try again. myapp@vs-ssh.visualstudio.com: Permission denied (password,publickey). fatal: Could not read from remote repository.

我还尝试在 git scm 插件中添加“高级子模块步骤”,但无济于事。

有没有办法确保它也对这些更新使用正确的 ssh key ?

最佳答案

Is there a way to make sure it uses the correct ssh key for those updates as well?

是的,使用 JENKINS SSH Credentials Plugin ,您可以复制该插件中的私钥,并将关联的凭据用于 Git 存储库作业设置,这将使用所述私钥进行任何 ssh 调用。
这假设最近(2016 年)version of the Jenkins Git client .
作为seen here ,您可以在 Advanced sub-modules behaviours 设置中使用来自父存储库默认远程的凭据。

关于git - blueocean 中的子模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48666916/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com