This can be done via EnvInject plugin in the following way:
Create an "Execute shell" build step that runs:
echo AOEU=$(echo aoeu) > propsfile
Create an Inject environment variables build step and set "Properties File Path" to 'propsfile'.
M.J. Mikkola, and William C. Schnobrich. Structural Research Series No.367. University of Illinois Engineering Experiment Station. College of
Engineering, University of Illinois at Urbana-Champaign, (August 1970)