Use GERRIT_CHANGES.
Change-Id: I93a642bc850bc06cf053ad7d3a529d698cc68527
This commit is contained in:
parent
a03262c814
commit
816e7e2446
|
@ -137,14 +137,13 @@ class Jenkins(object):
|
||||||
self.log.info("Launch job %s for change %s with dependent changes %s" % (
|
self.log.info("Launch job %s for change %s with dependent changes %s" % (
|
||||||
job, change, dependent_changes))
|
job, change, dependent_changes))
|
||||||
uuid = str(uuid1())
|
uuid = str(uuid1())
|
||||||
dependent_changes_str = '^'.join(
|
changes_str = '^'.join(
|
||||||
['%s:%s:%s' % (c.project.name, c.branch, c.refspec)
|
['%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,
|
params = dict(UUID=uuid,
|
||||||
GERRIT_PROJECT=change.project.name,
|
GERRIT_PROJECT=change.project.name,
|
||||||
GERRIT_BRANCH=change.branch,
|
GERRIT_BRANCH=change.branch,
|
||||||
GERRIT_REFSPEC=change.refspec,
|
GERRIT_CHANGES=changes_str)
|
||||||
DEPENDENT_CHANGES=dependent_changes_str)
|
|
||||||
build = Build(job, uuid)
|
build = Build(job, uuid)
|
||||||
self.builds[uuid] = build
|
self.builds[uuid] = build
|
||||||
# We can get the started notification on another thread before this is done
|
# We can get the started notification on another thread before this is done
|
||||||
|
|
Loading…
Reference in New Issue