`System.getenv` is global to the whole Jenkins JVM, so this would make no sense. Try https://javadoc.jenkins.io/plugin/workflow-step-api/org/jenkinsci/plugins/workflow/steps/StepContext.html#get-java.lang.Class- and https://javadoc.jenkins.io/hudson/EnvVars.html though probably you do not really want to inspect this directly, you want to use https://javadoc.jenkins.io/hudson/Launcher.html to run some process?
-- 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/CANfRfr0bACKPmc-pm6QrYQ4YMpWcQG%2BpPvhtLhUwoZxpn-n53Q%40mail.gmail.com.
