From 143c3f12c1eeb375ee5b55b0665bb7d2b995f355 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Thu, 18 Aug 2016 10:18:06 +0200 Subject: [PATCH] Set token for homebrew repository --- buildbot/master/files/config/environments.py | 3 +++ buildbot/master/files/config/factories.py | 5 +++++ 2 files changed, 8 insertions(+) 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]