Thanks for the quick answer, I changed my_label to mylabel just to avoid 
underscores but, as you say, println( 
Label.get("mylabel").nodeProvisioner.stat.computeQueueLength() ) returns 0.
While 
println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
 
) returns 0 as well.

If I understand correctly there's nothing that I can do to solve this at 
the moment right?

Il giorno giovedì 21 maggio 2015 17:52:44 UTC+2, Suckow, Thomas J ha 
scritto:
>
>  Assuming you have things configured correctly I would believe it is 
> related to https://issues.jenkins-ci.org/browse/JENKINS-27034
>
>  To confirm:
> In the groovy console /script you can try the following replacing 
> my&&label with your my_label expression. If it prints 0, I'd bet it is 
> the issue above.
> println( Label.get("my&&label").nodeProvisioner.stat.computeQueueLength() )
>
>  Also somewhat related, the following will print 1 but should be 0
> println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
>  
> )
>
>  My workaround is to visit /updateCenter/ and check the restart box, this 
> will usually cause the cloud slave to be started. For me it happens with 
> the docker cloud "randomly" and certainly has "moods"
>
>   From: Simone Dalmasso <simone....@gmail.com <javascript:>>
> Reply-To: "jenkins...@googlegroups.com <javascript:>" <
> jenkins...@googlegroups.com <javascript:>>
> Date: Thursday, May 21, 2015 at 8:17 AM
> To: "jenkins...@googlegroups.com <javascript:>" <
> jenkins...@googlegroups.com <javascript:>>
> Subject: [EC2 plugin] All nodes of label 'my_label' are offline
>  
>   Hi everyone, 
>
>  I'm using the EC2 plugin and I recently added a second AMI configuration 
> in the cloud tab with a label to use within a job.
> Unfortunately the job is not launching the node when I trigger a build. I 
> have to do it manually from the jenkins -> manage nodes section.
> I have another job using another node and is just working fine. I restrict 
> the jobs to the nodes using the labels and there are no specific 
> differences between the first and the second configurations apart from the 
> label and the instance type.
>
>  Am I doing something wrong or do you have any suggestions?
>
>  Thanks in advance
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>   

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4a9df393-a776-4407-af8e-7d75f1a66773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to