我无法在Jenkins控制台中执行以下脚本,我得到了
groovy.lang.MissingMethodException:没有方法的签名: Script1.node()适用于参数类型: (Script1 $ _run_closure1)值:[Script1 $ _run_closure1 @ 2a2abfa]
node {
stage('Lancement: Automate_IPI_CHECK'){
try {
bat ('C:\\Windows\\SysWOW64\\CScript.exe ' +
"D:\\AUT_IPI_CHECK\\Scripts\\runnerInjecteur.vbs " +User +" "+
Pwd +" " +' \CheminJenkins:'+ TestSet
+' \RepLog:' + RepLog)
} catch(err) {
echo err.getMessage();
}
};
如果执行此操作,则会引发异常
node {
stage('Lancement: Automate_IPI_CHECK'){
try {
bat ('C:/Windows/SysWOW64/CScript.exe ' + "D:/AUT_IPI_CHECK/Scripts/runnerInjecteur.vbs " + User +" "+ Pwd +" "
+' /CheminJenkins:'+ TestSet
+' /RepLog:' + RepLog)
} catch(err)
{
echo err.getMessage();
}
};
}
请帮助我