PR#3931: web: add some handy links for module builds
Merges #3931 https://pagure.io/koji/pull-request/3931
This commit is contained in:
commit
1f585efce0
3 changed files with 27 additions and 0 deletions
|
|
@ -45,6 +45,23 @@
|
|||
<th>Maven version</th><td>$typeinfo.maven.version</td>
|
||||
</tr>
|
||||
#end if
|
||||
#if 'module' in $typeinfo
|
||||
#if $module_id
|
||||
<tr>
|
||||
<th>Module ID</th>
|
||||
#if $mbs_web_url
|
||||
<td><a href="$mbs_web_url/module/$module_id">$module_id</a></td>
|
||||
#else
|
||||
<td>$module_id</td>
|
||||
#end if
|
||||
</tr>
|
||||
#end if
|
||||
#if $module_tag
|
||||
<tr>
|
||||
<th>Module Tag</th><td><a href="taginfo?tagID=$module_tag.id">$module_tag.name</a></td>
|
||||
</tr>
|
||||
#end if
|
||||
#end if
|
||||
#if $summary
|
||||
<tr>
|
||||
<th>Summary</th><td class="rpmheader">$util.escapeHTML($summary)</td>
|
||||
|
|
|
|||
|
|
@ -1363,6 +1363,14 @@ def buildinfo(environ, buildID):
|
|||
if 'maven' in typeinfo or 'win' in typeinfo:
|
||||
if task:
|
||||
values['start_ts'] = task['start_ts']
|
||||
if 'module' in typeinfo:
|
||||
module_tag = None
|
||||
module_tag_name = typeinfo['module'].get('content_koji_tag')
|
||||
if module_tag_name:
|
||||
module_tag = server.getTag(module_tag_name, event='auto')
|
||||
values['module_tag'] = module_tag
|
||||
values['module_id'] = typeinfo['module'].get('module_build_service_id')
|
||||
values['mbs_web_url'] = environ['koji.options']['MBS_WEB_URL']
|
||||
if build['state'] == koji.BUILD_STATES['BUILDING']:
|
||||
avgDuration = server.getAverageBuildDuration(build['package_id'])
|
||||
if avgDuration is not None:
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ class Dispatcher(object):
|
|||
['ToplevelTasks', 'list', []],
|
||||
['ParentTasks', 'list', []],
|
||||
|
||||
['MBS_WEB_URL', 'string', None],
|
||||
|
||||
['RLIMIT_AS', 'string', None],
|
||||
['RLIMIT_CORE', 'string', None],
|
||||
['RLIMIT_CPU', 'string', None],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue