Jenkins 管道作业 - 作业描述中没有阶段 UI

Jenkins Pipeline job - no stages UI on Job description

我是 Jenkins Pipeline 的菜鸟,试图将一堆 DSL Flow(Jenkins 弃用 2.x)类型的作业转换为 Pipeline 类型的作业。 作为第一步,我使用 Job 本身的代码字段来插入我的脚本。 我从一个非常基本的示例开始,但我在工作描述中收到一条消息,该脚本没有阶段,尽管它有。

This Pipeline has run successfully, but does not define any stages. Please use the stage step to define some stages in this Pipeline.

脚本:

pipeline {
    agent {
        label 'master'
    }
    stages {
        stage('Build') {
            steps{
                echo 'mvn install'
            }
        }
    }
}

截图供参考:

感谢任何帮助:)

似乎更新管道插件解决了这个问题。