Hello,
I have a Jenkins job that gets triggered programatically by the API and I 
need to get that resulting build number. 
My current process is to get the next build number, trigger a build, then I 
keep polling Jenkins to determine when it has finished.

The problem arises when I want to this job to be triggered by more than one 
API call.
Multiple API calls could call at the same time, get the same next build 
number, and wait for the build even though they have different triggered 
build numbers.

Are there any good ways around this?

The best solution I can think of right now is to generate a random string 
to be used as an ID. Post that ID as a parameter than use the API to find 
which build has that matching ID. Thoughts?


Thank you

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/9fdf4312-41df-4150-b71d-f5a12a168612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to