java.lang.NoSuchMethodError:在步骤之间找不到这样的DSL方法“ ctrlp”

时间:2019-03-20 15:07:28

标签: jenkins jenkins-pipeline

执行Jenkins Pipeline DSL代码时出现错误

 if (StartRptSIT1 == "true") {
            stage('SIT1') {
                 ctrlp('StartRptSIT1', [nodeName: nodeName, resumeOnError: 'false']){
                    echo "StartRptSIT1- started"
                    sh SCRIPT_HOME + 'SIT1/Report_Mail.sh sit1'
                    echo "StartRptSIT1 - finished"
                }
            } // End of stage
        } // end of StartOmsInd condition
    }, //End of stage label

有人可以帮我这是什么错误吗?

下面是错误

java.lang.NoSuchMethodError:在步骤[归档,bat,构建,catchError,签出,deleteDir,dir,dockerFingerprintFrom,dockerFingerprintRun,echo,envVarsForTool,错误,fileExists,getContext,git,输入,isUnix,junit,库,libraryResource,负载,锁,邮件,里程碑,节点,并行,powershell,属性,pwd,readFile,readTrusted,resolveScm,重试,脚本,sh,sleep,stage,stash,step,svn,超时,时间戳,工具,取消存档,取消隐藏,validateDeclarativePipeline,waitUntil,withContext,

0 个答案:

没有答案