Revert to getfile urls if the task is not successful (closed).
This is needed because unless the task is closed, the log files won't be in the packages/ tree, and the email will reference 404 urls.
This commit is contained in:
parent
c939b34ff6
commit
51e2d69f9e
1 changed files with 4 additions and 1 deletions
|
|
@ -2118,7 +2118,10 @@ Build Info: %(weburl)s/buildinfo?buildID=%(build_id)i\r
|
|||
if filetype == 'rpms':
|
||||
output += " %s\r\n" % '/'.join([options.pkgurl, build['name'], build['version'], build['release'], task['build_arch'], file])
|
||||
elif filetype == 'logs':
|
||||
output += " %s\r\n" % '/'.join([options.pkgurl, build['name'], build['version'], build['release'], 'data', 'logs', task['build_arch'], file])
|
||||
if tasks[task_state] != 'closed':
|
||||
output += " %s/getfile?taskID=%s&name=%s\r\n" % (weburl, task['id'], file)
|
||||
else:
|
||||
output += " %s\r\n" % '/'.join([options.pkgurl, build['name'], build['version'], build['release'], 'data', 'logs', task['build_arch'], file])
|
||||
elif task[filetype] == 'misc':
|
||||
output += " %s/getfile?taskID=%s&name=%s\r\n" % (weburl, task['id'], file)
|
||||
output += "\r\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue