【问题标题】:Running commands on Remote machine using PsExec from Msbuild invoked via Jenkins使用通过 Jenkins 调用的 Msbuild 中的 PsExec 在远程机器上运行命令
【发布时间】:2013-04-10 07:30:37
【问题描述】:

我正在使用 psexec(带有 MSbuild 脚本)在 Jenkins(Hudson)的服务器上运行 xCopy。该命令在通过命令提示符(作为系统用户)运行时运行正常,但在尝试使用 Jenkins 时会出现以下错误。这是我在 Msbuild 脚本中使用的命令:

psexec \\<RemoteMachine> /accepteula -i -u <Domian\User> -p <Pass> -s cmd /c xcopy <Path1> <Path2> /e /i 

PsExec v1.98 - 远程执行进程 版权所有 (C) 2001-2010 Mark Russinovich Sysinternals - www.sysinternals.com

句柄无效。 连接到..

无法访问: 连接到...

**error MSB3073: The command "psexec \\<RemoteMachine> /accepteula -i -u <Domian\User> -p <Pass> -s cmd /c xcopy <Path1> <Path2> /e /i  " exited with code 6.**

我尝试了太多选择,但到目前为止都没有运气。

有人用 Jenkins 尝试过同样的方法吗?帮助将不胜感激。 有没有其他方法可以使用其他一些工具来实现这一点而没有任何问题。请分享。

【问题讨论】:

    标签: permissions msbuild jenkins hudson psexec


    【解决方案1】:

    只是想在这里发布解决方案,因为我在一段时间后想通了。

    远程计算机应将此用户添加到管理员组中。

    这将解决连接问题。 :)

    【讨论】:

      猜你喜欢
      • 2014-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-17
      • 1970-01-01
      • 1970-01-01
      • 2012-11-17
      • 2013-06-06
      相关资源
      最近更新 更多