Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: scripts/slave/recipe_modules/buildbucket/example.py

Issue 2324733005: BuildBucket recipe module can expose properties. (Closed)
Patch Set: Remove parenthesis. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/buildbucket/example.py
diff --git a/scripts/slave/recipe_modules/buildbucket/example.py b/scripts/slave/recipe_modules/buildbucket/example.py
index 099ced801655a6a560b4dcc01f0bdfac9ab2d27b..2404f8e1b7af3faa6507fca55ba49a80f37ce96b 100644
--- a/scripts/slave/recipe_modules/buildbucket/example.py
+++ b/scripts/slave/recipe_modules/buildbucket/example.py
@@ -19,6 +19,9 @@ DEPS = [
def RunSteps(api):
+ if api.buildbucket.properties is None:
+ return
+
build_parameters = {
'builder_name': 'linux_perf_bisect',
'properties': {
@@ -142,3 +145,5 @@ def GenTests(api):
api.properties(
buildbucket={'build': {'tags': [
'buildset:patch/rietveld/cr.chromium.org/123/10001']}}))
+
+ yield (api.test('no_properties'))

Powered by Google App Engine
This is Rietveld 408576698