- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我有一个蓝海项目,它使用 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/
我有一个蓝海项目,它使用 ssh key 获取一个 git 项目,我添加了新的 shell 命令,但它没有 pull .gitsubmodules 文件夹中的子模块: [submodule "Asse
我正在尝试使用 blueocean 配置多分支管道。 以前我使用构建后操作来发送通知并触发其他任务取决于构建状态,如下所示: 目前我正在寻找多分支管道中的类似功能。 但在旧界面和 blueocean
我已经开始通过使用jenkinsci / blueocean docker image学习jenkins。原来此镜像没有安装Maven。我按照Maven Installation on Jenkins
我有一个 Jenkins 管道脚本,其中包含如下所示的关键部分。一切似乎都在后台执行,但没有显示在 BlueOcean 上。 我做错了什么还是UI上的某种错误? def projects = [
现在,我的 blueocean 只是同一页面上所有项目的大列表,我如何组织它们?我希望有不同的选项卡或至少可以按团队将它们分开的东西。 我还没有看到任何如何执行此操作的示例。在旧的 Jenkins 中
我为 bitbucket 团队设置了 ssh key 。 但是 Blue Ocean UI 只为我提供了用户名和密码选项,这意味着我无法使用它来创建任何管道: 我现在必须使用旧的 UI,除非在 Blu
我们正在使用 jenkins 进行手动触发作业来部署一些代码。 描述我们管道的 Jenkinsfile 位于 jenkinsfile 专用存储库(不在已部署的代码存储库中)。 我们在 jenkinsf
我注意到控制台和 blueocean View 中相同作业的时间戳不同。 控制台输出中的时间戳显示我所在时区的正确时间。在 blueocean View 中,时间戳移动了两个小时。这可能表明 blue
docker图片 jenkinsci/blueocean似乎是官方的,因为官方文件提到了图像。 我要跑 docker-compose容器中的命令,但此图像仅附带 docker但不是 docker-co
我正在 Jenkins 蓝海中设置多分支管道。一切都开始运转良好。 我注意到的一件事是,有一段时间,我会执行名为“Branch indexing”的作业。 我的构建包含一些繁重的单元测试和代码覆盖率,
我正在运行 Jenkins 蓝海图像。我想传递 jenkins 的 startTLS 选项 like - JAVA_ARGS="-Djava.awt.headless=true -Dmail.smtp
给定一个运行一系列步骤的 Jenkins 管道,其中一些在 parallel 内块,有没有办法在管道内获得给定步骤或最近步骤的 Flow id? 什么是流 ID?如果您查看流水线作业的运行,您可以看到
我是一名优秀的程序员,十分优秀!