对于 Jenkins 中的声明性管道脚本,我不断收到此错误。
No such DSL method 'pipeline' found among steps
Run Code Online (Sandbox Code Playgroud)
我的脚本是这样的
pipeline {
agent any
stages {
stage('Example Build') {
steps {
echo 'Hello World'
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
我有 Jenkins 版本 2.19.4。希望我已经安装了所有必需的插件。为什么我会收到此异常?