Imagine a classic set_env.sh shell script which exports some environment variables
which contents are calculated (non-static, depending on the file system).
In Jenkins, I'd like to execute this shell script and afterwards calling an ant build step using the previous environment from the script.
Is there a way to do that in jenkins?
Another way would be to use the Envinject plugin. This lets you "inject" environment variables from a file so that they become part of the build environment, usable by all build steps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With