蚂蚁sshexec远程Windows服务器上的目标

问题描述:

我试图远程Windows机器上运行Ant sshexec 目标。下面是我的code:

I am trying to run Ant sshexec target on remote Windows machine. Below is my code:

<sshexec host="myhostname"
  trust="true"
  username="username"
  password="pass123"
  command="cd \cygdrive\D\project\jboss-eap-6.1\bin start ./standalone.bat"/>

服务器未起步。 PFA的詹金斯状态

The server is not getting started. PFA for the Jenkins status

在这里输入的形象描述

请注意:我正在从詹金斯这个Ant脚本Windows机器上

Note: I am running this Ant script from Jenkins on windows machine

CD 启动是两个独立的命令。你不能把它们一个接一个没有任何分隔符。无论是使用新的线路或&放大器;&安培;

The cd and start are two separate commands. You cannot put them one after another without any separator. Either use a new line or &&:

cd \cygdrive\D\project\jboss-eap-6.1\bin && start ./standalone.bat