blob: 95e81b86687592a24f8a5620ff3a1725b44c220b [file] [log] [blame]
Eric Boren080fbad2019-06-27 07:49:22 -04001#!/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
9import os
10import subprocess
11import sys
12
13
14kitchen = os.path.join(os.getcwd(), 'kitchen')
15logdog_url = 'logdog://logs.chromium.org/%s/%s/+/annotations' % (
16 sys.argv[4], os.environ['SWARMING_TASK_ID'])
17
18cmd = [
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',
34 '-output-result-json', os.path.join(sys.argv[1], 'build_result_filename'),
35 '-workdir', '.',
36 '-recipe', sys.argv[2],
37 '-properties', sys.argv[3],
38 '-logdog-annotation-url', logdog_url,
39]
40print 'running command: %s' % ' '.join(cmd)
41subprocess.check_call(cmd)