蚂蚁sshexec远程Windows服务器上的目标 [英] Ant sshexec target on remote Windows server

查看:265
本文介绍了蚂蚁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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆