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

Side by Side Diff: scripts/slave/recipes/cros/cbuildbot_tryjob.py

Issue 2166673002: Pass buildbucket.build.id to cbuildbot as --buildbucket-id. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: use_json_recipe Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import base64 5 import base64
6 import json
6 import zlib 7 import zlib
7 8
8 9
9 DEPS = [ 10 DEPS = [
10 'chromite', 11 'chromite',
11 'gitiles', 12 'gitiles',
12 'recipe_engine/json', 13 'recipe_engine/json',
13 'recipe_engine/properties', 14 'recipe_engine/properties',
14 ] 15 ]
15 16
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 buildername='etc', 171 buildername='etc',
171 slavename='test', 172 slavename='test',
172 repository='https://chromium.googlesource.com/chromiumos/tryjobs.git', 173 repository='https://chromium.googlesource.com/chromiumos/tryjobs.git',
173 revision=api.gitiles.make_hash('test'), 174 revision=api.gitiles.make_hash('test'),
174 cbb_config='xxx-fakeboard-fakebuild', 175 cbb_config='xxx-fakeboard-fakebuild',
175 cbb_extra_args='["--timeout", "14400", "--remote-trybot",' 176 cbb_extra_args='["--timeout", "14400", "--remote-trybot",'
176 '"--remote-version=4"]', 177 '"--remote-version=4"]',
177 ) 178 )
178 + api.chromite.seed_chromite_config(_CHROMITE_CONFIG) 179 + api.chromite.seed_chromite_config(_CHROMITE_CONFIG)
179 ) 180 )
181
182 # Test a config with buildbucket properties
183 yield (
184 api.test('pre_cq_buildbucket_config')
185 + api.properties(
186 mastername='chromiumos.tryserver',
187 buildername='pre-cq',
188 slavename='test',
189 repository='https://chromium.googlesource.com/chromiumos/tryjobs.git',
190 revision=api.gitiles.make_hash('test'),
191 cbb_config='binhost-pre-cq',
192 cbb_extra_args='["--timeout", "14400", "--remote-trybot",'
193 '"--remote-version=4"]',
194 buildbucket=json.dumps({'build': {'id':'12345'}})
195 )
196 + api.chromite.seed_chromite_config(_CHROMITE_CONFIG)
197 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698