I don't think there is a way. Are you using a source control system? You can store the variable value/pair into a property file. You can then commit it into your source as a post-build process. Otherwise, you can just store it in a property file located in the build server.
On Thursday, June 22, 2017 at 8:18:38 AM UTC-4, [email protected] wrote: > > I have an analysis number variable in my batch script that increments > after every job build. I have to get this new value in my post build email > notification. Jenkins job makes a copy of all system environment variables > at the start up and this way I keep getting the same environment variable > value in my post-build email, even though my analysis number environment > variable stored in the system has incremented. > > > My question is there a way to access the system environment variable and > not its copy stored in Jenkins? > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e3710602-4f63-422c-8616-7a15b8b89352%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
