New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80285


Ignore:
Timestamp:
07/08/11 09:22:57 (4 years ago)
Author:
wsiegrist@…
Message:

Give meaningful names to steps. Support forced build properties for portlist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/buildbot/master.cfg

    r80244 r80285  
    126126# custom class to make the file list available on the slave... 
    127127class ShellCommandWithPortList(ShellCommand): 
     128         name = 'write portlist file' 
     129         description = 'write portlist file' 
     130 
    128131         def setBuild(self, build): 
    129132            ShellCommand.setBuild(self, build) 
    130133             
     134            # support forced build properties 
     135            portlist = self.getProperty('portlist').strip() 
     136 
    131137            portset = set() 
    132138            # paths should be category/portdir(/...) 
     
    135141                if len(comps) >= 2 and comps[0] != '_resources': 
    136142                    portset.add(comps[1]) 
    137             portlist = ' '.join(portset) 
     143            portlist += ' ' + ' '.join(portset) 
    138144            self.setProperty('portlist', portlist) 
    139145 
     
    158164                      mode="update")) 
    159165ports_factory.addStep(ShellCommand(command=["./mpsync.sh"], 
     166                                   name="sync", 
     167                                   description="sync", 
    160168                      env={'PREFIX': WithProperties(prefix), 
    161169                           'SRC_PREFIX': WithProperties(src_prefix), 
     
    168176# sign generated binaries and sync to download server (if distributable) 
    169177ports_factory.addStep(ShellCommand(command=["./deploy_archives.sh"], 
     178                                   name="deploy archives", 
     179                                   description="deploy archives", 
    170180                      env={'PREFIX': WithProperties(prefix), 
    171181                           'DLHOST': dlhost, 
     
    174184# make a logfile summarising the success/failure status for each port 
    175185ports_factory.addStep(ShellCommand(command=["./do_status.sh"], 
     186                                   name="status", 
     187                                   description="status", 
    176188                        env={'PREFIX': WithProperties(prefix)}, 
    177189                        logfiles={"portstatus": "portstatus.log"})) 
    178190# do we want to upload the individual logs so maintainers can review them? 
    179 ports_factory.addStep(ShellCommand(command="rm -rf ./logs-*")) 
     191ports_factory.addStep(ShellCommand(command="rm -rf ./logs-*", 
     192                                   name="cleanup", 
     193                                   description="cleanup")) 
    180194 
    181195from buildbot.config import BuilderConfig 
Note: See TracChangeset for help on using the changeset viewer.