aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-09-15 08:35:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-15 13:44:14 +0000
commit053d7a43e5f9b799ce32cbaee22aaf97ac65c925 (patch)
tree1437ddb0ba273f1951d034565748311e7e33765b /infra/bots/recipe_modules
parent73fd0d6418844fe8255798708d2af50c31824ad2 (diff)
[infra] Add internal_bot_id flag to recipes
Allows differentiation between internal bots in recipes. Bug: skia: Change-Id: I7130f2adc13dd01f7572856ea64c428a6adf56ba Reviewed-on: https://skia-review.googlesource.com/46844 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipe_modules')
-rw-r--r--infra/bots/recipe_modules/vars/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/vars/api.py b/infra/bots/recipe_modules/vars/api.py
index b5f39834f4..dde7d92dd9 100644
--- a/infra/bots/recipe_modules/vars/api.py
+++ b/infra/bots/recipe_modules/vars/api.py
@@ -143,6 +143,10 @@ class SkiaVarsApi(recipe_api.RecipeApi):
self.chromeos_homedir = '/home/chronos/user/'
+ # Internal bot support.
+ self.internal_bot_id = self.m.properties.get('internal_bot_id')
+ self.is_internal_bot = self.internal_bot_id is not None
+
@property
def is_linux(self):
return 'Ubuntu' in self.builder_name or 'Debian' in self.builder_name