-
Story
-
Resolution: Done
-
Minor
-
None
-
Pipeline Config 0.1
A common enough pattern is to skip either a whole pipeline or a stage based on the branch of execution. This is pretty common in deployment focused pipelines, and would be a strong reason to break out of config and that would be a shame.
It would be nice if this was somewhat first class in pipeline config. Some may be able to be done with a block scoped step... but not clear if all can be.
A general way of saying "if this boolean condition is false, skip this stage" would be the way to go - a branch matching would be one particular use of this, but the right thing to do is go generic.
- is related to
-
JENKINS-47286 Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view
-
- Closed
-
[JENKINS-37781] Pipeline Config: ability to skip whole pipeline or stages based on boolean condition
Description |
Original:
A common enough pattern is to skip either a whole pipeline or a stage based on the branch of execution. This is pretty common in deployment focussed pipelines, and would be a strong reason to break out of config and that would be a shame. It would be nice if this was somewhat first class in pipeline config. Some may be able to be done with a block scoped step... but not clear if all can be. In scope: * on-branch declaration as a peer with postBuild or stages * same on-branch pattern per stage |
New:
A common enough pattern is to skip either a whole pipeline or a stage based on the branch of execution. This is pretty common in deployment focused pipelines, and would be a strong reason to break out of config and that would be a shame. It would be nice if this was somewhat first class in pipeline config. Some may be able to be done with a block scoped step... but not clear if all can be. A general way of saying "if this boolean condition is false, skip this stage" would be the way to go - a branch matching would be one particular use of this, but the right thing to do is go generic. |
Summary | Original: Pipeline Config: ability to skip whole pipeline or stages based on branch | New: Pipeline Config: ability to skip whole pipeline or stages based on boolean condition |
Assignee | Original: Andrew Bayer [ abayer ] | New: rsandell [ rsandell ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Done [ 10000 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is related to |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |