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
Post a Comment