Posted By: Anonymous
I would like to be able to do something like:
and have Jenkins set
The Environment Variables section in Jenkins doesn’t do that. Instead, it sets
How can I get Jenkins to evaluate a shell command and assign the output to an environment variable?
Eventually, I want to be able to assign the executor of a job to an environment variable that can be passed into or used by other scripts.
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
Note: This plugin is (mostly) not compatible with the Pipeline plugin.