> -----Original Message----- > From: Rob Mandeville > Sent: Wednesday, December 31, 2014 8:57 > [reformatted to make sense...] >> From: Steve K >> Sent: Tuesday, December 30, 2014 3:21 PM >> >> Let's say that, since my most recent build, there have been >> three (3) new commits. >> Rather than having one build that includes all three commits, >> I would like to have three separate builds; one for each of >> the three in sequence. >> >> Is anyone doing something like that? If so, how are you doing it? >> >> Thanks in advance. >> > It can be (mostly) done, but you are intentionally defeating > a Jenkins feature and you need to take that into account. >
This sounds like you should be using a hook to ensure no commits are recevied (added to the repo) unless they pass all the tests. Steve, can you confirm that intention? <snip/> > If you absolutely, positively need one job per commit, > including the case above (or cases where multiple people > commit faster than Jenkins can even run its poll), now you're > going to have to get tricky. Now you need to work in the > poller job. It will have to behave like so: > > 1. Determine what the last commit built was. Maybe it > can use Jenkins internals, or get the parameters from the > last build of the runner via HTTP to the job's /api/xml page. > > 2. Get the history of the repository or branch > > 3. Find all the commits done after the last commit built > > 4. In order, launch the runner for each of those commits. > -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/A3E5D23C7B8049FD8B2296F83444BBBD%40black. For more options, visit https://groups.google.com/d/optout.