[JIRA] (JENKINS-59469) stage result in post stage action

2 views
Skip to first unread message

aholland@a1dutch.co.uk (JIRA)

unread,
Sep 21, 2019, 10:08:01 AM9/21/19
to jenkinsc...@googlegroups.com
Andrew Holland created an issue
 
Jenkins / Improvement JENKINS-59469
stage result in post stage action
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2019-09-21 14:07
Environment: Jenkins 2.176
Priority: Trivial Trivial
Reporter: Andrew Holland
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}")
    }
  }
} 
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages