-
Bug
-
Resolution: Unresolved
-
Trivial
-
None
-
Jenkins LTS 2.138.2
Recommended plugins, specifically:
https://plugins.jenkins.io/workflow-aggregator 2.6
https://plugins.jenkins.io/pipeline-model-definition 1.3.2
Running on Mac OS Mojave
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)Jenkins LTS 2.138.2 Recommended plugins, specifically: https://plugins.jenkins.io/workflow-aggregator 2.6 https://plugins.jenkins.io/pipeline-model-definition 1.3.2 Running on Mac OS Mojave java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
This is an uncommon situation, and not blocking anything, but it seems that there is no limit on the number of times you can nest stages in a Pipeline, even though as per the following, the limit should be two levels of stage nesting when in a sequential stage:
https://jenkins.io/doc/book/pipeline/syntax/#sequential-stages
"The stages within stages in a stage cannot contain further parallel or stages themselves, but they do allow use of all other functionality of a stage, including agent, tools, `when, etc."
Attached is a testcase:
When this is run, it passes without any warnings or errors, even though this should be technically unsupported. Here is the log:
log
I'm unsure if we should warn users in this situation, or update the sequential stage documentation at https://jenkins.io/doc/book/pipeline/syntax/#sequential-stages