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

stage result in post stage action

    XMLWordPrintable

Details

    Description

      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}")
          }
        }
      } 

      Attachments

        Activity

          Is this still not possible in 2022?

          brianjmurrell Brian J Murrell added a comment - Is this still not possible in 2022?

          People

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

            Dates

              Created:
              Updated: