On Fri, Jan 20, 2017 at 11:48 AM, Adakar <[email protected]> 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?)
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" 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-dev/CANfRfr3ZDSxyLrgA%2BZOs3%3DTjk5usV8BC5GAeKPgtca9A_PTkjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.