Jenkins:如何在 Web UI 中删除并行阶段上的周围阶段?
Jenkins: how to remove the surrounding stage over parallel stages in the Web UI?
我在 Jenkins 中有以下声明性管道:
pipeline {
agent any
...
stage('Deployment') {
parallel {
stage('Deployment:CI') {
...
}
stage('Deployment:Test') {
...
}
stage('Deployment:Production') {
...
}
}
...
}
}
在 jenkins 的 web 界面中,它看起来如下所示:
如您所见,GUI 中有一个(虚拟)阶段,即部署,它只是一个周围阶段,什么都不做。
我的问题是:我怎样才能去掉 Web 界面中的这个阶段并仍然有并行阶段?
由于您在 jenkinsfile 中声明了阶段 - 它无法在管道执行时隐藏在标准界面中。
如评论中所述,我在我的 Jenkins 中安装了 Blue Ocean 作为插件。这是我实际需要的屏幕截图:
我在 Jenkins 中有以下声明性管道:
pipeline {
agent any
...
stage('Deployment') {
parallel {
stage('Deployment:CI') {
...
}
stage('Deployment:Test') {
...
}
stage('Deployment:Production') {
...
}
}
...
}
}
在 jenkins 的 web 界面中,它看起来如下所示:
如您所见,GUI 中有一个(虚拟)阶段,即部署,它只是一个周围阶段,什么都不做。
我的问题是:我怎样才能去掉 Web 界面中的这个阶段并仍然有并行阶段?
由于您在 jenkinsfile 中声明了阶段 - 它无法在管道执行时隐藏在标准界面中。
如评论中所述,我在我的 Jenkins 中安装了 Blue Ocean 作为插件。这是我实际需要的屏幕截图: