Use GERRIT_CHANGES.

Change-Id: I93a642bc850bc06cf053ad7d3a529d698cc68527
This commit is contained in:
James E. Blair 2012-05-30 11:21:31 -07:00
parent a03262c814
commit 816e7e2446
1 changed files with 3 additions and 4 deletions

View File

@ -137,14 +137,13 @@ class Jenkins(object):
self.log.info("Launch job %s for change %s with dependent changes %s" % (
job, change, dependent_changes))
uuid = str(uuid1())
dependent_changes_str = '^'.join(
changes_str = '^'.join(
['%s:%s:%s' % (c.project.name, c.branch, c.refspec)
for c in dependent_changes])
for c in dependent_changes+[change]])
params = dict(UUID=uuid,
GERRIT_PROJECT=change.project.name,
GERRIT_BRANCH=change.branch,
GERRIT_REFSPEC=change.refspec,
DEPENDENT_CHANGES=dependent_changes_str)
GERRIT_CHANGES=changes_str)
build = Build(job, uuid)
self.builds[uuid] = build
# We can get the started notification on another thread before this is done