-
Improvement
-
Resolution: Fixed
-
Minor
Currently only the System Locale field is accessible publicly. But ignoreAcceptLanguage cannot be set without accessing private fields. E.g. example from: https://github.com/oleg-nenashev/demo-jenkins-config-as-code/blob/master/init_scripts/src/main/groovy/scripts/System.groovy
println("--- Configuring Locale") //TODO: Create ticket to get better API PluginImpl localePlugin = (PluginImpl)Jenkins.instance.getPlugin("locale") localePlugin.systemLocale = "en_US" localePlugin.@ignoreAcceptLanguage=true
[JENKINS-52131] Allow setting ignoreAcceptLanguage from Java API
Assignee | New: Oleg Nenashev [ oleg_nenashev ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |