This must be a simple rookie mistake but
def hi = hudson.model.Hudson.instance
hi.getItems(hudson.model.Project).each {project ->
println(project.displayName)
def di = project.getDownstreamProjects
println(di.name)
}
just returns
groovy.lang.MissingPropertyException: No such property: getDownstreamProjects for class: hudson.model.FreeStyleProject
but the doc say the method exist on the AbstractProject What do I do wrong?