Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40443

Possibility to know the current stage in a Pipeline

XMLWordPrintable

      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){
         ...
      }
      

            ssbarnea Sorin Sbarnea
            ifernandezcalvo Ivan Fernandez Calvo
            Votes:
            13 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: