Hi,
On Friday, June 29, 2012 3:43:16 AM UTC+2, Brute wrote: > > As the title, how can I make the java script to get Jenkins envirnment > variables which are set in Global properties of Manage Jenkins->Config > System? > Depends on what you mean by "the java script": If you're running on node, you can access them through process.env. If you're talking about JavaScript executed in a browser, I doubt you can access the Systems environment variables. You could inject them by running a small utility that dumps your environment variables to a JSON-Object, write it to a .js file and include that in your browser. Of course this will be a snapshot of the environment and in your browser you will not get any changes to the variables made at a later point. Chris
