bndr/gojenkins

BuildJob return same queue id

hengren108 opened this issue · 2 comments

If the interval between two calls to BuildJob is very short, the returned queue id is the same?

figo commented

@hengren108 in my local test, the Jenkins server is returning Job is already run when call BuildJob twice in code (two calls almost in the same time), so this is the Jenkins server behavior, user can solve this issue by injecting delay between two calls.

@hengren108 if two calls have the same params, and the first one is in the queue and haven't been built, jenkins will return same queue id and treat them as one build.