Merge "Add uuid to the launch log record"
This commit is contained in:
commit
1c42a2ab47
|
@ -265,12 +265,14 @@ class Gearman(object):
|
||||||
params))
|
params))
|
||||||
|
|
||||||
def launch(self, job, item, pipeline, dependent_items=[]):
|
def launch(self, job, item, pipeline, dependent_items=[]):
|
||||||
self.log.info("Launch job %s for change %s with dependent changes %s" %
|
uuid = str(uuid4().hex)
|
||||||
(job, item.change,
|
self.log.info(
|
||||||
[x.change for x in dependent_items]))
|
"Launch job %s (uuid: %s) for change %s with dependent "
|
||||||
|
"changes %s" % (
|
||||||
|
job, uuid, item.change,
|
||||||
|
[x.change for x in dependent_items]))
|
||||||
dependent_items = dependent_items[:]
|
dependent_items = dependent_items[:]
|
||||||
dependent_items.reverse()
|
dependent_items.reverse()
|
||||||
uuid = str(uuid4().hex)
|
|
||||||
params = dict(ZUUL_UUID=uuid,
|
params = dict(ZUUL_UUID=uuid,
|
||||||
ZUUL_PROJECT=item.change.project.name)
|
ZUUL_PROJECT=item.change.project.name)
|
||||||
params['ZUUL_PIPELINE'] = pipeline.name
|
params['ZUUL_PIPELINE'] = pipeline.name
|
||||||
|
|
Loading…
Reference in New Issue