-
New Feature
-
Resolution: Unresolved
-
Minor
-
Jenkins version 2.89.4
It would be really nice to support some steps in case a stage is skipped due to the when block. I understand the motivation in JENKINS-47577 not executing some post block for this. However, without some support for this, one cannot send an e-mail when a stage is skipped or inform other tools about this, that monitor pipelines for example.
In my case this would render the really nice descriptive pipelines rather useless and I would have to stick to the scripted pipelines which results in a lot more code.
- relates to
-
JENKINS-47577 Post when stage is skipped due to when conditional
-
- Fixed but Unreleased
-
I've thought some about this sort of thing - I'm considering maybe adding a finally post condition (which would also be helpful for
JENKINS-41519, I think) that would always be run, regardless of build status, stage execution, etc, and would always be run after all other post conditions. But I'm not sure that directly addresses your use case - maybe a skipped post condition?In general, I really need to rewrite post entirely behind the scenes - there are a bunch of limitations its current implementation creates. Sigh. =)