Jenkins 文件的 Jenkins 多分支管道错误
Jenkins Multi Branch Pipeline error with Jenkins file
我创建了一个 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'
}
}
}
}
}
我已经阅读了关于 Jenkins 的所有可用文档,但我总是遇到这个奇怪的错误
我没有打印上图中以红色突出显示的管道开始,但它是从某处拉出的。
请您帮忙修复它,因为我不知道它
您似乎缺少一个插件,因此它不知道 pipeline
的含义。
docs recommend https://plugins.jenkins.io/workflow-aggregator/。
我创建了一个 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'
}
}
}
}
}
我已经阅读了关于 Jenkins 的所有可用文档,但我总是遇到这个奇怪的错误
我没有打印上图中以红色突出显示的管道开始,但它是从某处拉出的。
请您帮忙修复它,因为我不知道它
您似乎缺少一个插件,因此它不知道 pipeline
的含义。
docs recommend https://plugins.jenkins.io/workflow-aggregator/。