diff --git a/buildbot/master/files/config/environments.py b/buildbot/master/files/config/environments.py index d8c427ff..ee809d8c 100644 --- a/buildbot/master/files/config/environments.py +++ b/buildbot/master/files/config/environments.py @@ -136,5 +136,8 @@ def without(self, to_unset): upload_nightly = Environment({ 'AWS_ACCESS_KEY_ID': S3_UPLOAD_ACCESS_KEY_ID, 'AWS_SECRET_ACCESS_KEY': S3_UPLOAD_SECRET_ACCESS_KEY, +}) + +update_brew = Environment({ 'TOKEN': GITHUB_HOMEBREW_TOKEN, }) diff --git a/buildbot/master/files/config/factories.py b/buildbot/master/files/config/factories.py index ad0b5d5c..d19828ac 100644 --- a/buildbot/master/files/config/factories.py +++ b/buildbot/master/files/config/factories.py @@ -132,6 +132,11 @@ def make_step(self, command): r'C:\Program Files\Amazon\cfn-bootstrap', ]) + # Set token for homebrew repository + elif arg == './etc/ci/update_brew.sh' + step_kwargs['logEnviron'] = False + step_env += envs.update_brew + else: step_desc += [arg]