【发布时间】:2020-04-14 05:26:14
【问题描述】:
我在 Windows 上的 jenkins 中运行这个脚本。用蝙蝠调用它。
文件夹:Jenkins\workspace\FullyAutomated>
命令:
pscp -scp -i ..\..\keys\key.ppk webapp\target\webapp.war ec2-user@x.xx.xxx.xxx:~/apache-tomcat-8.5.54/webapps
错误:
'pscp' is not recognized as an internal or external command,
operable program or batch file.
我可以从我机器上的那个文件夹本地运行它并且它可以工作。但是我想让它与詹金斯一起工作。
我需要安装插件吗?
【问题讨论】:
-
听起来
pscp不在运行 Jenkins 服务的用户的 PATH 上。 -
好吧,我把它添加到 jenkins PATH 环境中
-
不确定如何添加
-
作业也在管理员用户上运行,我如何允许用户在我的计算机上使用 pscp?