OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Post a try job request via HTTP to the Tryserver to produce build.""" | 5 """Post a try job request via HTTP to the Tryserver to produce build.""" |
6 | 6 |
7 import getpass | 7 import getpass |
8 import json | 8 import json |
9 import optparse | 9 import optparse |
10 import os | 10 import os |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 if not options.port: | 363 if not options.port: |
364 raise ServerAccessError('Please use the --port option to specify the try ' | 364 raise ServerAccessError('Please use the --port option to specify the try ' |
365 'server port to connect to.') | 365 'server port to connect to.') |
366 params = _GetQueryParams(options) | 366 params = _GetQueryParams(options) |
367 PostTryJob(params) | 367 PostTryJob(params) |
368 | 368 |
369 | 369 |
370 if __name__ == '__main__': | 370 if __name__ == '__main__': |
371 sys.exit(Main(sys.argv)) | 371 sys.exit(Main(sys.argv)) |
372 | 372 |
OLD | NEW |