Hello,
After some more searching I found another post somewhere with an
answer. Posting it here again for future reference. You can access an
environment variable in a Groovy post build script as follows:
manager.build.getEnvironment(manager.listener)['ENV_VAR']
Hopefully this will help somebody in the future.
Kind regards,
Hans
> I am trying to figure out how I can use thevalueof anenvironmentvariabletosettheresultof abuildin Jenkins.
>
> I have a Python script with does a few checks and sets anenvironmentvariablein a fileusingthe EnvInjectPlugin.
>
> I want to make aGroovyscript that checks the results of thisvariable. The file is formatted as "CMV_RESULT = FALSE/TRUE". I would
> like to have some kind ofGroovyscript that does