How do you get a java runtime environment variable

In my process I have a task with a groovy script that needs a condition based on the Java runtime environment variables.

ie. -Denvironment=production vs. -Denvironment=development

How can I access this in my Groovy script?

Hi,

Like you would do in Java. Have you tried the line below?

String env = System.getProperty(“environment”);

Regards,
Jerome

Exactly