On Fri, Jan 20, 2017 at 11:48 AM, Adakar <
jaku...@gmail.com> wrote:
> how to get current Stage name inside the
> SimpleBuildStep.perform(Run<?,?> run, FilePath workspace, Launcher launcher,
> TaskListener listener)method?
You cannot.
If you switched from `SimpleBuildStep` to a full-fledged `Step`, you
could get your `FlowNode` from the `StepContext` and use
`FlowScanningUtils.fetchEnclosingBlocks` to look for `LabelAction`,
which will match `stage(…) {…}` as well as some other steps that
define labels in block scope.
(But do you *really* need this information?)