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

Unified Diff: scripts/slave/recipe_modules/trigger/api.py

Issue 973703002: Buildbucket-based build triggering API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 10 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
« no previous file with comments | « scripts/slave/recipe_modules/step/config.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/trigger/api.py
diff --git a/scripts/slave/recipe_modules/trigger/api.py b/scripts/slave/recipe_modules/trigger/api.py
index 3f0803f8d6d93ab3ec8b337c87fa6187a06b294a..a7ae2fb07d85a3a3122e1bcd7d6d2a0b616fa0ce 100644
--- a/scripts/slave/recipe_modules/trigger/api.py
+++ b/scripts/slave/recipe_modules/trigger/api.py
@@ -46,6 +46,8 @@ class TriggerApi(recipe_api.RecipeApi):
trigger_specs: a list of trigger dicts, where each dict specifies a build
to trigger. Supported keys:
builder_name (str): in BuildBot context, builder name
+ bucket (str): buildbucket bucket where the triggered builds will be
+ placed.
properties (dict): build properties for a new build.
buildbot_changes (list of dict): list of Buildbot changes to create.
See below.
@@ -75,6 +77,15 @@ class TriggerApi(recipe_api.RecipeApi):
},
})
+ Using BuildBucket:
+ api.trigger({
+ 'builder_name': 'Release',
+ 'bucket': 'master.tryserver.chromium.linux',
+ 'properties': {
+ 'my_prop': 123,
+ },
+ })
+
Create Buildbot changes:
api.trigger({
'builder_name': 'Release',
« no previous file with comments | « scripts/slave/recipe_modules/step/config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698