On Mon, Mar 17, 2014 at 11:00 AM, Kohsuke Kawaguchi <
[email protected]> wrote:
>
> Kohsuke, There seems to be regression and subworld bound classes to not
>> see the
>> field injections. the only way for injections to work is via constructor
>> parameters but that makes no sense for tunable optional params. I swear
>> it was
>> working till cd142f180043dc1b41aaed542f5efd88e9562bad. something changed
>> somewhere in guice modules?
>>
>
> Do you have any test case to reproduce the problem?
Here is excerpt from my ec2.groovy:
slaves = subworld {
maxMtMachines=300
maxNumOfMachines=4
install(common)
user="ubuntu"
bind MachineProvider to MultitenancyMachineProvider
bind MachineProvider named "raw" to Ec2Provider
}
masters = subworld {
maxMtMachines=3
* maxNumOfMachines=2*
install(common)
user="ubuntu"
bind MachineProvider to MultitenancyMachineProvider
bind MachineProvider named "raw" to Ec2Provider
}
I think the easiest way to reproduce is to run in debugger with ec2.groovy
and set a breakpoint in JcloudsMachineProvider constructor, and
check maxNumOfMachines field, it shows 1 instead of 2 from ec2.groovy.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.