OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 from recipe_engine.recipe_api import Property | |
6 | |
7 DEPS = [ | |
8 'cipd', | |
9 'depot_tools/bot_update', | |
10 'depot_tools/gclient', | |
11 'recipe_engine/path', | |
12 'recipe_engine/properties', | |
13 ] | |
14 | |
15 | |
16 PROPERTIES = { | |
17 'mastername': Property(default=''), | |
18 'buildername': Property(default=''), | |
19 'buildnumber': Property(default=-1, kind=int), | |
20 } | |
21 | |
22 def RunSteps(api, mastername, buildername, buildnumber): | |
23 api.cipd.set_service_account_credentials( | |
24 api.cipd.default_bot_service_account_credentials) | |
25 | |
26 api.gclient.set_config('recipes_py_bare') | |
27 bot_update_step = api.bot_update.ensure_checkout(force=True) | |
28 | |
29 tags = { | |
30 'buildbot_build' : '%s/%s/%s' % (mastername, buildername, buildnumber), | |
31 'git_repository' : api.gclient.c.solutions[0].url, | |
32 'git_revision' : bot_update_step.presentation.properties['got_revision'], | |
33 } | |
34 | |
35 api.cipd.install_client() | |
36 api.cipd.create( | |
37 api.path['checkout'].join('infra', 'cipd', 'recipes-py.yaml'), | |
38 refs=['latest'], | |
39 tags=tags) | |
40 | |
41 | |
42 def GenTests(api): | |
43 yield api.test('basic') + api.properties(path_config='kitchen') | |
OLD | NEW |