Ticket #87: buildset.py.diff

File buildset.py.diff, 1.4 KB (added by rochg, 3 years ago)

Fix to make BuildSet? work with BuildRequest? now that BuildRequest? supports custom properties

  • buildbot/buildset.py

    old new  
    1010    source.revision), or a build of a certain set of Changes 
    1111    (source.changes=list).""" 
    1212 
    13     def __init__(self, builderNames, source, reason=None, bsid=None): 
     13    def __init__(self, builderNames, source, reason=None, bsid=None, custom_props=None): 
    1414        """ 
    1515        @param source: a L{buildbot.sourcestamp.SourceStamp} 
    1616        """ 
    1717        self.builderNames = builderNames 
    1818        self.source = source 
    1919        self.reason = reason 
     20        self.custom_props = custom_props 
    2021        self.stillHopeful = True 
    2122        self.status = bss = builder.BuildSetStatus(source, reason, 
    2223                                                   builderNames, bsid) 
     
    3233        self.requests = [] 
    3334        reqs = [] 
    3435 
     36        if None == self.custom_props: 
     37            self.custom_props = {} 
     38 
    3539        # create the requests 
    3640        for b in builders: 
    37             req = base.BuildRequest(self.reason, self.source, b.name) 
     41            req = base.BuildRequest(self.reason, 
     42                                    self.source, 
     43                                    self.custom_props, 
     44                                    b.name) 
    3845            reqs.append((b, req)) 
    3946            self.requests.append(req) 
    4047            d = req.waitUntilFinished()