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

Side by Side Diff: scripts/slave/recipes/infra/recipes_py_continuous.py

Issue 2047263003: build: delete infra recipes moved to infra repo except infra_continuous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 6 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 | Annotate | Revision Log
OLDNEW
(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')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698