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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """This file is a recipe demonstrating the buildbucket recipe module.""" 5 """This file is a recipe demonstrating the buildbucket recipe module."""
6 6
7 7
8 import json 8 import json
9 9
10 10
11 DEPS = [ 11 DEPS = [
12 'buildbucket', 12 'buildbucket',
13 'service_account', 13 'service_account',
14 'recipe_engine/platform', 14 'recipe_engine/platform',
15 'recipe_engine/properties', 15 'recipe_engine/properties',
16 'recipe_engine/raw_io', 16 'recipe_engine/raw_io',
17 'recipe_engine/step', 17 'recipe_engine/step',
18 ] 18 ]
19 19
20 20
21 def RunSteps(api): 21 def RunSteps(api):
22 if api.buildbucket.properties is None:
23 return
24
22 build_parameters = { 25 build_parameters = {
23 'builder_name': 'linux_perf_bisect', 26 'builder_name': 'linux_perf_bisect',
24 'properties': { 27 'properties': {
25 'bisect_config': { 28 'bisect_config': {
26 'bad_revision': '351054', 29 'bad_revision': '351054',
27 'bug_id': 537649, 30 'bug_id': 537649,
28 'command': ('src/tools/perf/run_benchmark -v ' 31 'command': ('src/tools/perf/run_benchmark -v '
29 '--browser=release --output-format=chartjson ' 32 '--browser=release --output-format=chartjson '
30 '--also-run-disabled-tests speedometer'), 33 '--also-run-disabled-tests speedometer'),
31 'good_revision': '351045', 34 'good_revision': '351045',
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 api.step_data( 138 api.step_data(
136 'buildbucket.put', 139 'buildbucket.put',
137 stdout=api.raw_io.output(mock_buildbucket_multi_response)) + 140 stdout=api.raw_io.output(mock_buildbucket_multi_response)) +
138 api.step_data( 141 api.step_data(
139 'buildbucket.get', 142 'buildbucket.get',
140 stdout=api.raw_io.output(mock_buildbucket_single_response)) + 143 stdout=api.raw_io.output(mock_buildbucket_single_response)) +
141 api.platform('win', 32) + 144 api.platform('win', 32) +
142 api.properties( 145 api.properties(
143 buildbucket={'build': {'tags': [ 146 buildbucket={'build': {'tags': [
144 'buildset:patch/rietveld/cr.chromium.org/123/10001']}})) 147 'buildset:patch/rietveld/cr.chromium.org/123/10001']}}))
148
149 yield (api.test('no_properties'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698