1
我想出来的詹金斯工作流程插件,并已开始教程https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md詹金斯工作流程插件MissingMethodException
我使用詹金斯1.628 CloudBees的构建流程的tomcat 0.18 Java的7.0.56与1.8.0_25所有最新的工作流程插件刚安装。
当我尝试的第一个例子
echo 'hello from Workflow'
我得到这个错误
ERROR: Failed to run DSL Script
groovy.lang.MissingMethodException: No signature of method:
com.cloudbees.plugins.flow.FlowDelegate.echo() is applicable for
argument types: (java.lang.String) values: [hello from Workflow]
如果我更改代码以
println 'hello from Workflow'
作业运行。
如果我尝试下面的例子中
node {
git url: 'https://github.com/jglick/simple-maven-project-with-tests.git'
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn -B verify"
}
出现此错误
ERROR: Failed to run DSL Script groovy.lang.MissingMethodException:
No signature of method:
com.cloudbees.plugins.flow.FlowDelegate.node()
is applicable for argument types: (Script1$_run_closure1) values:
[[email protected]]
有什么我错过了?
顺便提一下[build-flow-plugin PR 65](https://github.com/jenkinsci/build-flow-plugin/pull/65),这可能有助于减少未来的混乱。 –