Hi 
I'm writing a new Jenkins function and I would like to get the current 
stage name that is running right now on the pipeline.
for example:


stage("Stage1"){
    def current_stage = getCurrentStageName()
    echo "I'm in satage: $current_stage"

}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/89c43598-1d80-475b-b7cb-9bc3759b2ec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to