I am trying to invoke Groovy inside Hudson (using groovy plugin) to get some properties for our build. But I am getting this exception:
groovy.lang.MissingPropertyException: No such property: manager for class: Script1
I get this with the following line:
def buildNUmber = manager.build.number
Binding binding = new Binding();
GroovyShell shell = new GroovyShell(binding);
def buildNumber = manager.build.number
Maybe I'm missing some part of your code, but where do you define the manager? If that's the complete Groovy script, you're trying to bind a variable which isn't declared anything, so it's not to weird that it fails, right?
Just define a manager it that's what you want, like:
def manager = "my manager" // probably not what you want
And should should be rid of your current error.