[英]Jenkins Multi Branch Pipeline error with Jenkins file
I have create a Jenkins Multi Branch pipeline where I have used below script to trigger a declarative steps from Github an Jenkins version 2.222.3.我创建了一个 Jenkins 多分支管道,在其中我使用了以下脚本来触发 Github 和 Jenkins 版本 2.222.3 的声明性步骤。
pipeline {
agent any
stages {
stage ('Compile Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn clean compile'
}
}
}
stage ('Testing Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn test'
}
}
}
stage ('Deployment Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn deploy'
}
}
}
}
}
I have read all the available docs on Jenkins but I am always landing on this weird error我已经阅读了 Jenkins 上的所有可用文档,但我总是遇到这个奇怪的错误
I am not printing Start of pipeline which is highlighted in red in the above picture but it is pulling from somewhere.我没有打印上图中以红色突出显示的管道开始,但它是从某个地方拉出来的。
Kindly request your kind assistance on fixing it as I am not aware of it请在修复它时请求您的帮助,因为我不知道它
It looks like you're missing a plugin and that's why it doesn't know what the pipeline
means.看起来您缺少一个插件,这就是它不知道
pipeline
意味着什么的原因。
The docs recommend https://plugins.jenkins.io/workflow-aggregator/ . 文档推荐https://plugins.jenkins.io/workflow-aggregator/ 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.