如何通过jenkins文件中的sshCommand将输入参数传递给Command执行?

时间:2019-07-11 16:33:03

标签: ssh jenkins-pipeline

sshCommand(remote: remote, command: "chmod +x change_sysdate_time.sh")
sshCommand(
     remote: remote, 
     command: "./change_sysdate_time.sh ${sysDate_to_change} ${sysTime_to_change}")

我想将定义为全局变量的${sysDate_to_change} ${sysTime_to_change}发送到脚本change_sysdate_time.sh

0 个答案:

没有答案