-
New Feature
-
Resolution: Fixed
-
Major
-
None
Please provide a way to access the stage name from within the stage and its contents (like post).
Background
I have a multibranch declarative script. I am struggling with the limitation of one JenkinsFile per branch. I want to run various tasks (i.e. stages) on the branch (e.g. build several separate apps) and have a clear indication of which stage failed in the email notification subject sent on failure. I assume that stage processing will stop as soon as one stage fails. The post clause can then call the email-ext plugin and specify in Subject the stage that failed. Developers will then see quickly which task failed, rather than having to look through the console log (or email body).
- is duplicated by
-
JENKINS-40443 Possibility to know the current stage in a Pipeline
-
- Resolved
-
- is related to
-
JENKINS-48315 Add env variable LAST_STAGE_NAME which will persist when stage ends prematurely
-
- Open
-
- links to
[JENKINS-44456] Provide a way to access a stage name from within the stage and its contents
Component/s | New: pipeline-stage-step-plugin [ 21709 ] | |
Component/s | Original: pipeline-model-definition-plugin [ 21706 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "Stage Step plugin PR #10 (Web Link)" [ 16913 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Actually moving this to pipeline-stage-step-plugin for a more general solution. It'll still need a followup in Declarative for
JENKINS-41334and the special casing of emulating stages via parallel branches, but that's trivial.