On Tue, Dec 15, 2020 at 2:15 AM Sourabh Jain <sour...@sumologic.com> wrote:

> I tried using run.getAction(EnvActionImpl.class); but it does not have
> the environment variables.
>

No, do not use that. It would only have *global* environment variables (and
not even all of those). `StepContext.get(EnvVars.class)` is used from
within a step implementation to access contextual variables.

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2-dgnKZdcUoNR1QO1U1YDXynkOoiJWnTxWuJr-Muhj%3Dg%40mail.gmail.com.

Reply via email to