Support periodic jobs in log custom function

Change-Id: Ice4db15fd16e0eea886ddc5f793d49693a0a9986
This commit is contained in:
James E. Blair 2013-08-01 15:54:12 -07:00
parent 85b4d8e6b5
commit 246df358a2

View File

@ -3,10 +3,12 @@ def set_log_url(item, job, params):
path = "%s/%s/%s/%s" % (
params['ZUUL_CHANGE'][-2:], params['ZUUL_CHANGE'],
params['ZUUL_PATCHSET'], params['ZUUL_PIPELINE'])
else:
elif hasattr(item.change, 'ref'):
path = "%s/%s/%s" % (
params['ZUUL_NEWREV'][:2], params['ZUUL_NEWREV'],
params['ZUUL_PIPELINE'])
else:
path = params['ZUUL_PIPELINE']
params['BASE_LOG_PATH'] = path
params['LOG_PATH'] = path + '/%s/%s' % (job.name,
params['ZUUL_UUID'][:7])