right, so want to access the job as a task in build queue, and distinguish
pending from running item

I just discovered this commit that may help :
https://github.com/ndeloof/jenkins/commit/9e3b4951dfec7f258c5f9fb52d967e2ab958ca3c
QueueTaskFuture will let me wait for build to start, then get the build
number


2013/7/10 Christoph Kutzinski <[email protected]>

> AFAIK, you cannot determine the build number before the build is actually
> started. So you cannot get it from the queued item.
>
> *Gesendet:* Mittwoch, 10. Juli 2013 um 12:07 Uhr
> *Von:* "nicolas de loof" <[email protected]>
> *An:* [email protected]
> *Betreff:* how to retrieve schedule job build number ?
>  I'm triggering a job (build flow plugin) using project.scheduleBuild2
> I'd like to get the build number as the build start, not waiting for
> completion (just like queue widget does). Seems I need the Queue Item ID
> for this purpose, but scheduleBuild2 don't expose this one.
>
> Any suggestion ?
>
>
> --
> 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/groups/opt_out.
>
>
>
> --
> 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/groups/opt_out.
>
>
>

-- 
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/groups/opt_out.


Reply via email to