gpt4 book ai didi

Jenkins Pipeline 作业 - 作业描述上没有阶段 UI

转载 作者:行者123 更新时间:2023-12-05 04:06:17 25 4
gpt4 key购买 nike

我是 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'
}
}
}
}

引用截图: enter image description here

感谢任何帮助:)

最佳答案

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

关于Jenkins Pipeline 作业 - 作业描述上没有阶段 UI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50010343/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com