-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
I search for a way to know the current stage into a Pipeline, checking the documentation there is not way to do that. as a workaround we could define a environment variable to manage it but it it is not too DRY, Is it possible to evaluate this feature?
stage('Stage One'){ env.STAGE = 'Stage One' ... }
or
env.STAGE = 'Stage One'
stage(env.STAGE){
...
}
- duplicates
-
JENKINS-44456 ProvideĀ a way to access a stage name from within the stage and its contents
- Resolved