在 VSTS 中使用 SSH 与 BitBucket 的附加连接
Additional connection to BitBucket using SSH in VSTS
我一直在尝试在 VSTS 中为一个使用 BitBucket 的项目设置一个新版本。这样做的原因是我想离开 TeamCity。我已经使用 OAuth 建立了与 BitBucket 的连接,它工作正常。
我的问题是,当我 运行 一个 npm install
任务时,它失败并显示消息:
npm ERR! Error while executing:
npm ERR! C:\agents.139.1\externals\git\cmd\git.EXE ls-remote -h -t ssh://git@bitbucket.org/{project}/{repo}.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
package.json
中的一个依赖项通过 SSH 引用 BitBucket 中的另一个存储库。我似乎无法找到一种方法来将 SSH 密钥添加到我的构建中以便使用 BitBucket 进行身份验证。我也无法更改 package.json
文件,因为它当前正由开发团队和当前的 TeamCity 项目配置使用。
有没有办法将 SSH 密钥添加到 VSTS 中的构建中,如果可以,它在哪里?
有一个 Install SSH Key 构建任务可用于在构建或发布之前安装 SSH 密钥。
我一直在尝试在 VSTS 中为一个使用 BitBucket 的项目设置一个新版本。这样做的原因是我想离开 TeamCity。我已经使用 OAuth 建立了与 BitBucket 的连接,它工作正常。
我的问题是,当我 运行 一个 npm install
任务时,它失败并显示消息:
npm ERR! Error while executing:
npm ERR! C:\agents.139.1\externals\git\cmd\git.EXE ls-remote -h -t ssh://git@bitbucket.org/{project}/{repo}.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
package.json
中的一个依赖项通过 SSH 引用 BitBucket 中的另一个存储库。我似乎无法找到一种方法来将 SSH 密钥添加到我的构建中以便使用 BitBucket 进行身份验证。我也无法更改 package.json
文件,因为它当前正由开发团队和当前的 TeamCity 项目配置使用。
有没有办法将 SSH 密钥添加到 VSTS 中的构建中,如果可以,它在哪里?
有一个 Install SSH Key 构建任务可用于在构建或发布之前安装 SSH 密钥。