【问题标题】:where is the ssh root directory of teamcity?teamcity的ssh根目录在哪里?
【发布时间】:2014-02-20 17:15:34
【问题描述】:

我尝试在 Teamcity 8 中运行 SSH Exec 命令 scp %teamcity.build.workingDir%ROOT.war 128.12.0.7:/home/my/share/tomcat/webapps/ 以部署 tomcat webapp。

但是,由于我的构建代理是 Windows,我得到了 ssh: Could not resolve hostname C: Name or service not known 错误。因此,我尝试将 ROOT.war 文件复制到引用 scp 命令的根目录,以删除任何 \ 符号。

之后,命令将是scp ROOT.war 10.0.0.7:/home/my/share/tomcat/webapps/

我的问题是,TeamCity(Windows 代理)中引用的 scp 命令的根目录在哪里?

【问题讨论】:

    标签: teamcity scp


    【解决方案1】:

    我通过 commandline dir 命令简单地检查了目录,它给出了%teamcity.build.workingDir% 结果。

    【讨论】:

      猜你喜欢
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 2011-03-04
      • 1970-01-01
      • 2015-09-05
      • 2011-09-08
      • 1970-01-01
      • 2010-12-06
      相关资源
      最近更新 更多