蚂蚁sshexec远程Windows服务器上的目标 [英] Ant sshexec target on remote Windows server
本文介绍了蚂蚁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
这篇关于蚂蚁sshexec远程Windows服务器上的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文