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),這可能有助於減少未來的混亂。 –