java - Query Environment Variables values defined in Jenkins Global Properties using API -


i have configured environment variable under:

manage jenkins -> configure system -> global properties.

i'm able use environment variable in jobs can't seem find way query remotely using api.

is displayed anywhere?

we setting global environments this:

for (nodeproperty in hudson.model.hudson.instance.globalnodeproperties) {     sitespecific.global_environment.each {key, value ->         println "info: adding: ${key}:${value}"         nodeproperty.getenvvars().put(key, value)     }      hudson.model.hudson.instance.save() } 

so should able read them same way, not through api, couldn't find way that.


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -