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

Unified Diff: recipes/recipes/recipes_py_continuous.py

Issue 2041313002: infra: check in recipes running on master.chromium.infra (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: TODO 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 side-by-side diff with in-line comments
Download patch
Index: recipes/recipes/recipes_py_continuous.py
diff --git a/recipes/recipes/recipes_py_continuous.py b/recipes/recipes/recipes_py_continuous.py
new file mode 100644
index 0000000000000000000000000000000000000000..aaca5893042f0eed1c606973a156a681e6805d76
--- /dev/null
+++ b/recipes/recipes/recipes_py_continuous.py
@@ -0,0 +1,43 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from recipe_engine.recipe_api import Property
+
+DEPS = [
+ 'build/cipd',
+ 'depot_tools/bot_update',
+ 'depot_tools/gclient',
+ 'recipe_engine/path',
+ 'recipe_engine/properties',
+]
+
+
+PROPERTIES = {
+ 'mastername': Property(default=''),
+ 'buildername': Property(default=''),
+ 'buildnumber': Property(default=-1, kind=int),
+}
+
+def RunSteps(api, mastername, buildername, buildnumber):
+ api.cipd.set_service_account_credentials(
+ api.cipd.default_bot_service_account_credentials)
+
+ api.gclient.set_config('recipes_py_bare')
+ bot_update_step = api.bot_update.ensure_checkout(force=True)
+
+ tags = {
+ 'buildbot_build' : '%s/%s/%s' % (mastername, buildername, buildnumber),
+ 'git_repository' : api.gclient.c.solutions[0].url,
+ 'git_revision' : bot_update_step.presentation.properties['got_revision'],
+ }
+
+ api.cipd.install_client()
+ api.cipd.create(
+ api.path['checkout'].join('infra', 'cipd', 'recipes-py.yaml'),
+ refs=['latest'],
+ tags=tags)
+
+
+def GenTests(api):
+ yield api.test('basic') + api.properties(path_config='kitchen')
« no previous file with comments | « recipes/recipes/luci_go.expected/presubmit_try_job.json ('k') | recipes/recipes/recipes_py_continuous.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698