我正在尝试使用ssh向远程机器传递一个参数。我已经使用ssh插件添加了远程主机。
# works for local shell
+ echo sdk
sdk
executing script:
BUILD="sdk"
# doesn't work for remote shell
export BUILD
echo "$BUILD"
BUILD=sdk: Command not found.
export: Command not found.
BUILD: Undefined variable.
[SSH] exit-status: 1
Build step 'Execute shell script on remote host using ssh' marked build as failure
Finished: FAILURE我尝试了双引号,大括号,导出,但是我什么都没有得到远程shell上的参数值。如果我在jenkins上遗漏了任何配置,有人能告诉我吗?
https://stackoverflow.com/questions/44397466
复制相似问题