Control build order on a jazz build engine
![](http://jazz.net/_images/myphoto/7f1077c3e622d82ff5c740206660a2bb.jpg)
2 answers
![](http://jazz.net/_images/myphoto/7f1077c3e622d82ff5c740206660a2bb.jpg)
Richard,
The build queue is a simple FIFO queue. There currently isn't any support for JBE to process requests in any other order. Can you provide more details about your scenario?
One option would be for you to manage the queue yourself via Ant using the getNextTeamBuildRequest and startTeamBuild Ant tasks. e.g. have one process that continuously empties the FIFO queue using getNextTeamBuildRequest and adds it to the end of a list, and another that periodically takes the most recent request from the top of the list and processes it using startTeamBuild.
Of course, if a new request was issued while a build was in process, it would have to wait.
Regards,
Nick
The build queue is a simple FIFO queue. There currently isn't any support for JBE to process requests in any other order. Can you provide more details about your scenario?
One option would be for you to manage the queue yourself via Ant using the getNextTeamBuildRequest and startTeamBuild Ant tasks. e.g. have one process that continuously empties the FIFO queue using getNextTeamBuildRequest and adds it to the end of a list, and another that periodically takes the most recent request from the top of the list and processes it using startTeamBuild.
Of course, if a new request was issued while a build was in process, it would have to wait.
Regards,
Nick
![](http://jazz.net/_images/myphoto/7f1077c3e622d82ff5c740206660a2bb.jpg)
Hi Nick,
Thanks for the reply. The reason I was interested in using LIFO was because I was trying out using an additional ant build to run some tests on the code output from our normal builds. Basically I had our normal code build use requestTeamBuild to launch a test run. However, the tests are quite long running, so we prefer to run the most recent build request first to give us an idea of the most current code status although we are interested in getting all the results eventually to see where any failures were introduced.
I had noticed the getNextTeamBuildRequest, but I was hoping I might have overlooked an easier option! I will take another look at it.
Thanks,
Richard
Thanks for the reply. The reason I was interested in using LIFO was because I was trying out using an additional ant build to run some tests on the code output from our normal builds. Basically I had our normal code build use requestTeamBuild to launch a test run. However, the tests are quite long running, so we prefer to run the most recent build request first to give us an idea of the most current code status although we are interested in getting all the results eventually to see where any failures were introduced.
I had noticed the getNextTeamBuildRequest, but I was hoping I might have overlooked an easier option! I will take another look at it.
Thanks,
Richard