简体   繁体   English

Jenkins-“ Execute Shell”可以执行SSH命令吗?

[英]Jenkins - can the “Execute Shell” execute SSH commands

I use 'Execute Shell' to run below command in Jenkins, but nothing happened in the remote server 我使用“ Execute Shell”在詹金斯中的命令下运行,但远程服务器未发生任何反应

ssh -v baiming.zhang@192.168.0.47 'pybot.bat --argumentfile E:\project\robot_framework\第一个测试项目\logs\argfile.txt E:\project\robot_framework\第一个测试项目'

below are the output of the Jenkins 以下是詹金斯的输出

在此处输入图片说明

Use the Double quote (") to execute the commands on remote system. 使用双引号(“)在远程系统上执行命令。

ssh -v baiming.zhang@192.168.0.47 "pybot.bat --argumentfile E:\\project\\robot_framework\\第一个测试项目\\logs\\argfile.txt E:\\project\\robot_framework\\第一个测试项目" ssh -v baiming.zhang@192.168.0.47“ pybot.bat --argumentfile E:\\ project \\ robot_framework \\第一个测试项目\\ logs \\ argfile.txt E:\\ project \\ robot_framework \\第一个测试项目”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM