[Buildbot-devel] prioritizeBuilders configuration
Taner Deveci
tanerdeveci at gmail.com
Thu Dec 19 11:05:13 UTC 2013
I solved like this.
def prioritizeBuilders(_, builders):
ordered_builders=[]
for b in builders:
if
b.builder_status.getLastFinishedBuild().getResults()==SUCCESS:
ordered_builders.insert(0, b)
else:
ordered_builders.append(b)
return ordered_builders
c['prioritizeBuilders'] = prioritizeBuilders
On Thu, Nov 28, 2013 at 2:22 PM, Taner Deveci <tanerdeveci at gmail.com> wrote:
> Hello,
>
> I want to sort build requests according to the last build results of
> builders.
> As far as I know prioritizeBuilders is right place for this sorting.
> prioritizeBuilders have list of builders. But how can get the last build
> status of any builder in prioritizeBuilders.
>
> Thanks.
>
> --
> Taner
>
--
Taner DEVECİ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20131219/38d36d5a/attachment.html>
More information about the devel
mailing list