Is there any workaround that I can retrieve the Build Environment settings for every job in a groovy script ? For example I installed the 'Scriptler plugin' and the 'EnvInject plugin' and I want to find out for every job that I have if "manage exclusion" is ticked or not :
what I did is:
println String.format( "<b>List of JOBS :</b>" )`
println ''
for(item in jenkins.model.Jenkins.instance.getAllItems(hudson.model.Job.class))
{
if(item instanceof hudson.model.ExternalJob)
continue
println''
for (env in item.builders)
println env
}