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

Side by Side Diff: scripts/master/try_job_base_bb7.py

Issue 8305010: Add ChromiumOS Trybot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « scripts/master/try_job_base.py ('k') | scripts/master/tryjob_git_poller.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 import os 5 import os
6 6
7 from buildbot import buildset 7 from buildbot import buildset
8 from buildbot.changes.changes import Change 8 from buildbot.changes.changes import Change
9 from buildbot.scheduler import BadJobfile 9 from buildbot.scheduler import BadJobfile
10 from buildbot.scheduler import TryBase # pylint: disable=W0611 10 from buildbot.scheduler import TryBase # pylint: disable=W0611
(...skipping 22 matching lines...) Expand all
33 jobstamp = TryJobStamp( 33 jobstamp = TryJobStamp(
34 branch=options['branch'], 34 branch=options['branch'],
35 revision=options['revision'], 35 revision=options['revision'],
36 patch=patch, 36 patch=patch,
37 changes=fake_changes, 37 changes=fake_changes,
38 last_good_url=last_good_url, 38 last_good_url=last_good_url,
39 code_review_site=code_review_site, 39 code_review_site=code_review_site,
40 job_name=options['name'], 40 job_name=options['name'],
41 patchset=options['patchset'], 41 patchset=options['patchset'],
42 issue=options['issue']) 42 issue=options['issue'])
43 return options['bot'], jobstamp, options['name'], self.get_props(options) 43 return options['bot'], jobstamp, options['reason'], self.get_props(options)
44 44
45 def CancelJobsMatching(self, source_stamp, builder_name): 45 def CancelJobsMatching(self, source_stamp, builder_name):
46 """Cancels any jobs with the same job and owner.""" 46 """Cancels any jobs with the same job and owner."""
47 47
48 if (not isinstance(source_stamp, TryJobStamp) or 48 if (not isinstance(source_stamp, TryJobStamp) or
49 len(source_stamp.changes) != 1): 49 len(source_stamp.changes) != 1):
50 # Not a try job. 50 # Not a try job.
51 return 51 return
52 52
53 # TODO(maruel): remove once pylint improves its type inference. 53 # TODO(maruel): remove once pylint improves its type inference.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 reason=reason, 111 reason=reason,
112 bsid=buildset_id, 112 bsid=buildset_id,
113 properties=props) 113 properties=props)
114 build_sets.append(build_set) 114 build_sets.append(build_set)
115 self.CancelJobsMatching(build_set, builder_name) 115 self.CancelJobsMatching(build_set, builder_name)
116 for build_set in build_sets: 116 for build_set in build_sets:
117 # Type inference error. 117 # Type inference error.
118 # pylint: disable=E1101 118 # pylint: disable=E1101
119 self.parent.submitBuildSet(build_set) 119 self.parent.submitBuildSet(build_set)
120 return http.OK 120 return http.OK
OLDNEW
« no previous file with comments | « scripts/master/try_job_base.py ('k') | scripts/master/tryjob_git_poller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698