diff options
Diffstat (limited to 'zuul')
-rw-r--r-- | zuul/launcher/gearman.py | 3 | ||||
-rw-r--r-- | zuul/model.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/zuul/launcher/gearman.py b/zuul/launcher/gearman.py index 6b6ca1f04..9390eee31 100644 --- a/zuul/launcher/gearman.py +++ b/zuul/launcher/gearman.py @@ -274,7 +274,7 @@ class Gearman(object): # ZUUL_SHORT_OLDREV if callable(job.parameter_function): - job.parameter_function(item.change, params) + job.parameter_function(item, params) self.log.debug("Custom parameter function used for job %s, " "change: %s, params: %s" % (job, item.change, params)) @@ -284,6 +284,7 @@ class Gearman(object): else: name = "build:%s" % job.name build = Build(job, uuid) + build.parameters = params gearman_job = gear.Job(name, json.dumps(params), unique=uuid) diff --git a/zuul/model.py b/zuul/model.py index f1dd0b048..ac475ba93 100644 --- a/zuul/model.py +++ b/zuul/model.py @@ -465,6 +465,7 @@ class Build(object): self.launch_time = time.time() self.start_time = None self.end_time = None + self.parameters = {} self.fraction_complete = None def __repr__(self): |