On Thu, Nov 12, 2020 at 6:08 AM Lakshmi Narasimhan
<[email protected]> wrote:
> My issue is that the step does not return a map or any value. I am referring 
> to the  "step" metastep.

No, you cannot return values if you use `SimpleBuildStep`. You can
extend `Step` directly (Pipeline-specific). But it may be better to
extend `SimpleBuildWrapper` and define environment variables within
its block; this will work in freestyle, Scripted Pipeline, _and_
Declarative Pipeline (without `script` blocks).

-- 
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/CANfRfr2H_WD86QDw91f2sme7VQ8GAecK8zeBOrPaxt1eXA5YHQ%40mail.gmail.com.

Reply via email to