stage result in post stage action

This issue is archived. You can view it, but you can't modify it. Learn more

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

            Assignee:
            Unassigned
            Reporter:
            Andrew Holland
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: