Hi there,

I'm currently working on some enhancements for the build-pipeline plugin 
and recently had to update Jenkins to 1.563. In order to follow up with the 
plugin, I updated the dependency to 1.563/4 also but ran into a problem I 
don't quite understand. It seems that in the Jenkins Core, the Class 
hudson.model.Queue now denies access to it's inner classes like Item and 
WaitingItem? Especially the latter was of great use, as it allowed me to 
show scheduled jobs with estimated starting time and expected wait time in 
the plugin.

So, in 1.509.3 I could do this:

   ...
   final List<Queue.Item> qitems = 
Jenkins.getInstance().getQueue().getApproximateItemsQuickly();

   and later on....
   if (qitem instanceof Queue.WaitingItem)....

These two things fail in 1.563 (did not try in between). 

Does anyone know if and why this is actually the case, and might be able to 
give me an idea how to access the same information in 1.563 or newer? I had 
a look around, but don't see it (yet).

Kind regards
Reto

-- 
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.

Reply via email to