Skip to content
Permalink
Browse files

buildbot: Load secrets from secrets.json

  • Loading branch information
raimue committed Mar 10, 2018
1 parent 7a0a408 commit ff18166be63a5a6ad7b67be82c4b06c2a281da88
Showing with 11 additions and 0 deletions.
  1. +8 −0 buildbot/master.cfg
  2. +3 −0 buildbot/secrets.json.sample
@@ -67,6 +67,7 @@ config = {

# External configuration. Use absolute paths when overriding these.
'configfile': _path('config.json'),
'secretsfile': _path('secrets.json'),
'workersfile': _path('slaves.json'),
'htpasswdfile': _path('htpasswd'),

@@ -117,6 +118,13 @@ except IOError:
extconfig = {}
config.update(extconfig)

# Load secrets from external file
try:
with open(config['secretsfile']) as f:
secrets = json.load(f)
except IOError:
secrets = {}

path_base = '/usr/bin:/bin:/usr/sbin:/sbin'
path_ports = os.path.join(config['toolsprefix'], 'bin') + ':' + path_base
path_jobs = os.path.join(config['jobstoolsprefix'], 'bin') + ':' + path_base
@@ -0,0 +1,3 @@
{
"githubapitoken": ""
}

0 comments on commit ff18166

Please sign in to comment.
You can’t perform that action at this time.