Try adding an extra parameter that's always different. Some people use a time counter. I've used a hash of the time, user, and other parameters. That should guarantee that each job has a unique parameter set and overcome the problem. I think you can also use the Random String Parameter Plugin[1] but I was having a weird problem with how it interacted with the Rebuild Plugin[2] so I couldn't use it (and didn't have the time to debug the source of the problem).
[1] https://wiki.jenkins-ci.org/display/JENKINS/Random+String+Parameter+Plugin [2] https://wiki.jenkins-ci.org/display/JENKINS/Rebuild+Plugin On Fri, Jun 27, 2014 at 6:41 PM, Naomi Chopra <naomi.chopra....@gmail.com> wrote: > I am using Jenkins REST API to schedule jobs on behalf of multiple users. > If I schedule the build jobs for the same project in a loop (without > delay) with the same parameters but different users, Jenkins combines all > the jobs and just runs one job. If I change the parameters or add > considerable delay between the build requests (~10 secs) then the jobs are > kicked off separately. > > Is this behavior intended or am I doing anything wrong? > > Is it possible to schedule a new job for every job request via the REST > API even if the parameters are the same? > > > <https://lh4.googleusercontent.com/-PHvV5IhD1KA/U64dCAmFWPI/AAAAAAAADy0/LqbTmpXEods/s1600/jenkins-issue.jpg> > > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.