[JIRA] (JENKINS-40443) Possibility to know the current stage in a Pipeline

2 views
Skip to first unread message

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Dec 14, 2016, 9:09:03 AM12/14/16
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo created an issue
 
Jenkins / Improvement JENKINS-40443
Possibility to know the current stage in a Pipeline
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: pipeline-stage-step-plugin
Created: 2016/Dec/14 2:08 PM
Priority: Minor Minor
Reporter: Ivan Fernandez Calvo

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){
   ...
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

fescobar.systems@gmail.com (JIRA)

unread,
Feb 21, 2020, 11:44:02 AM2/21/20
to jenkinsc...@googlegroups.com
Frank Escobar commented on Improvement JENKINS-40443
 
Re: Possibility to know the current stage in a Pipeline

It would be good if we can get the stageName and stageResult

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages