git - 从 teamcity 运行时 Bower 安装缓慢

标签 git teamcity bower

我有许多由 Bower 管理的客户端包。当我们部署我们的应用程序(通过 teamcity)时,我们执行 bower 安装以获取每个包的最新版本,然后将其复制到我们的服务器。

当我从我的本地计算机运行它时,bower 安装需要 10-20 秒。当我在 teamcity 中将其作为构建步骤运行时(请注意命令行构建步骤以及包含“bower install”的自定义脚本)需要 4 分钟。如果我远程桌面到那台机器上并从命令行运行 bower 安装需要 10-20 秒。

有没有人知道发生了什么事?

编辑

如果我查看服务器上的 ProcExp,似乎 ssh.exe 在完成执行之前挂了很长时间。

一些额外的细节:

  • TeamCity Enterprise 7.1.4(内部版本 24331);代理版本:24331
  • window 服务器 2008 R2
  • 代理以管理员帐户运行
  • Git v1.8
  • 构建步骤是自定义脚本;节点 node_modules/bower/bin/bower 安装
  • 同时尝试使用 teamcity.git.use.native.ssh=false 和 teamcity.git.use.native.ssh=true
  • 在/.ssh 中使用私钥

我找到了 this issue on Teamcity's Youtrack这似乎是相同/相似的问题,但此后已关闭。不确定是否相关。我还提出了 new issue但没有反应

最佳答案

我们发现 Git for windows 安装了一个旧版本的 SSH,如果你升级到最新版本的 SSH 它将修复缓慢 http://darrell.mozingo.net/2011/09/29/painfully-slow-clone-speeds-with-msysgit-gitextensions/

关于git - 从 teamcity 运行时 Bower 安装缓慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14362554/

相关文章:

twitter-bootstrap - 鲍尔 : install fork of Bootstrap

git - 量化 git diff 中的变化量?

teamcity - 从远程机器访问 TEAMCITY

c - 在 Ubuntu 上安装的 TeamCity 服务器上构建 Visual Studio 项目

javascript - 将 Bower 添加到 Gulp/Nodemon/Browsersync/Angular 配置中

bower - 如何使用 Bower 更新脚本?

git - 列出 Git 在 a 和 b 之间的提交,仅考虑 b 的第一个 parent 和 a 的第一个 parent

git - .gitignore 路径匹配语法中的前导星号 "**/"是否多余?

linux - git 命令显示来自 sha1 哈希的分支/功能名称

visual-studio-2010 - 没有Visual Studio的Microsoft代码契约(Contract)