I have Jenkins job that has execute shell part in which I have some variable BUILD that is dynamically populated.
After build execution, I want to pass this variable to email-ext plugin Default Content to able to show it's value.
I've tried couple of ways without a success:
- Passing this ${BUILD} value in Default Content is not recognized (Only Jenkins environment variables are visible in this context)
- Defined new Jenkins global environment variable and tried to overwrite its initial value in shell context which apparently is not possible
Any idea on how to do this?