display Maven info on the build page
This commit is contained in:
parent
06a5c125da
commit
50f599188c
2 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,14 @@
|
|||
<tr>
|
||||
<th>Epoch</th><td>$build.epoch</td>
|
||||
</tr>
|
||||
#if $mavenbuild
|
||||
<tr>
|
||||
<th>Maven groupId</th><td>$mavenbuild.group_id</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Maven artifactId</th><td>$mavenbuild.artifact_id</td>
|
||||
</tr>
|
||||
#end if
|
||||
<tr>
|
||||
<th>Built by</th><td><a href="userinfo?userID=$build.owner_id">$build.owner_name</a></td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -809,6 +809,7 @@ def buildinfo(req, buildID):
|
|||
tags.sort(_sortbyname)
|
||||
rpms = server.listBuildRPMs(build['id'])
|
||||
rpms.sort(_sortbyname)
|
||||
mavenbuild = server.getMavenBuild(buildID)
|
||||
|
||||
if build['task_id']:
|
||||
task = server.getTaskInfo(build['task_id'], request=True)
|
||||
|
|
@ -819,6 +820,7 @@ def buildinfo(req, buildID):
|
|||
values['tags'] = tags
|
||||
values['rpms'] = rpms
|
||||
values['task'] = task
|
||||
values['mavenbuild'] = mavenbuild
|
||||
if req.currentUser:
|
||||
values['perms'] = server.getUserPerms(req.currentUser['id'])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue