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

stage result in post stage action

XMLWordPrintable

      Hi,
      
      i need access to the current stage result inside the post block, is it possible to expose a STAGE_RESULT environment variable like the STAGE_NAME?
      
      stage('') {
        steps {
          ...
        }
        post {
          always {
            echo("${env.STAGE_NAME} ${env.STAGE_RESULT}")
          }
        }
      } 

            Unassigned Unassigned
            a1dutch Andrew Holland
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: