Since this returns one and not zero, I am inclined to believe it is not the issue I was speaking of. It still could be, but it would be in a way I have not seen.
The fact unlabeledNodeProvisioner returns 1 is still wrong, but in the worst case should unnecessarily spawn slaves.
In your job configuration, I assume you are using "Restrict where this project can be run". Does it say "Slaves in label: 1" or does it have zero?
I don't use the EC2 plugin, so I can only guess now that either you have something misconfigured in the the cloud configuration or there is a bug in the EC2 plugin.
Also note in your response you use mylabel and mylablel. I assume these are placeholders but in the case they are not, you might double check spelling of your labels.
-
Thomas