New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82619


Ignore:
Timestamp:
08/16/11 14:48:31 (4 years ago)
Author:
jmr@…
Message:

buildmaster: don't require passwords for local test install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/buildbot/master.cfg

    r82106 r82619  
    243243from buildbot.status import html 
    244244from buildbot.status.web import auth, authz 
    245 from buildbot.status.web.auth import HTPasswdAuth 
    246 htauth = HTPasswdAuth('htpasswd') 
    247 authz_cfg=authz.Authz( 
    248     auth=htauth, 
    249     gracefulShutdown = 'auth', 
    250     forceBuild = 'auth', 
    251     forceAllBuilds = 'auth', 
    252     pingBuilder = 'auth', 
    253     stopBuild = 'auth', 
    254     stopAllBuilds = 'auth', 
    255     cancelPendingBuild = 'auth', 
    256 ) 
     245if production: 
     246    from buildbot.status.web.auth import HTPasswdAuth 
     247    htauth = HTPasswdAuth('htpasswd') 
     248    authz_cfg=authz.Authz( 
     249        auth=htauth, 
     250        gracefulShutdown = 'auth', 
     251        forceBuild = 'auth', 
     252        forceAllBuilds = 'auth', 
     253        pingBuilder = 'auth', 
     254        stopBuild = 'auth', 
     255        stopAllBuilds = 'auth', 
     256        cancelPendingBuild = 'auth', 
     257    ) 
     258else: 
     259    authz_cfg=authz.Authz( 
     260        gracefulShutdown = True, 
     261        forceBuild = True, 
     262        forceAllBuilds = True, 
     263        pingBuilder = True, 
     264        stopBuild = True, 
     265        stopAllBuilds = True, 
     266        cancelPendingBuild = True 
     267    ) 
    257268 
    258269####### PROJECT IDENTITY 
Note: See TracChangeset for help on using the changeset viewer.