| Eric Boren | 080fbad | 2019-06-27 07:49:22 -0400 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # |
| 3 | # Copyright 2018 Google LLC |
| 4 | # |
| 5 | # Use of this source code is governed by a BSD-style license that can be |
| 6 | # found in the LICENSE file. |
| 7 | |
| 8 | |
| 9 | import os |
| 10 | import subprocess |
| 11 | import sys |
| 12 | |
| 13 | |
| 14 | kitchen = os.path.join(os.getcwd(), 'kitchen') |
| 15 | logdog_url = 'logdog://logs.chromium.org/%s/%s/+/annotations' % ( |
| 16 | sys.argv[4], os.environ['SWARMING_TASK_ID']) |
| 17 | |
| 18 | cmd = [ |
| 19 | kitchen, 'cook', |
| 20 | '-checkout-dir', 'recipe_bundle', |
| 21 | '-mode', 'swarming', |
| 22 | '-luci-system-account', 'system', |
| 23 | '-cache-dir', 'cache', |
| 24 | '-temp-dir', 'tmp', |
| 25 | '-known-gerrit-host', 'android.googlesource.com', |
| 26 | '-known-gerrit-host', 'boringssl.googlesource.com', |
| 27 | '-known-gerrit-host', 'chromium.googlesource.com', |
| 28 | '-known-gerrit-host', 'dart.googlesource.com', |
| 29 | '-known-gerrit-host', 'fuchsia.googlesource.com', |
| 30 | '-known-gerrit-host', 'go.googlesource.com', |
| 31 | '-known-gerrit-host', 'llvm.googlesource.com', |
| 32 | '-known-gerrit-host', 'skia.googlesource.com', |
| 33 | '-known-gerrit-host', 'webrtc.googlesource.com', |
| Eric Boren | 080fbad | 2019-06-27 07:49:22 -0400 | [diff] [blame] | 34 | '-workdir', '.', |
| 35 | '-recipe', sys.argv[2], |
| 36 | '-properties', sys.argv[3], |
| 37 | '-logdog-annotation-url', logdog_url, |
| 38 | ] |
| 39 | print 'running command: %s' % ' '.join(cmd) |
| 40 | subprocess.check_call(cmd) |