Can you not get this from the future that is returned from the call to schedule 
build?

http://javadoc.jenkins-ci.org/hudson/model/queue/QueueTaskFuture.html#getStartCondition()
http://javadoc.jenkins-ci.org/hudson/model/queue/QueueTaskFuture.html#waitForStart()

/James


From: [email protected] [mailto:[email protected]] On 
Behalf Of nicolas de loof
Sent: 10 July 2013 11:07
To: [email protected]
Subject: 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]<mailto:[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