#import koji #import koji.util as kojiutil #from kojiweb import util #from urllib.parse import quote #import datetime #def printChildren($taskID, $childMap) #set $iter = 0 #set $children = $childMap[$str($taskID)] #if $children
| ID | $task.id |
|---|---|
| Method | $task.method |
| Parameters |
#if $params_parsed
$params_parsed
#else
Parameters are not correct for this method.
$params
#end if
|
| State | $state #if $currentUser and ('admin' in $perms or $task.owner == $currentUser.id) #if $task.state in ($koji.TASK_STATES.FREE, $koji.TASK_STATES.OPEN, $koji.TASK_STATES.ASSIGNED) (cancel) #elif $task.state in ($koji.TASK_STATES.CANCELED, $koji.TASK_STATES.FAILED) and (not $parent) (resubmit) #end if #end if |
| Build | $koji.buildLabel($taskBuild) |
| Build | $koji.buildLabel($build) |
| Created | $util.formatTimeLong($task.create_ts) |
| Started | $util.formatTimeLong($task.start_ts) | #end if #set $end_ts = None #if $task.state == $koji.TASK_STATES.OPEN #if $estCompletion
| Est. Completion | $util.formatTimeLong($estCompletion) |
| Completed | $util.formatTimeLong($task.completion_ts) |
| Total time | $util.formatTimestampDifference($task.create_ts, $end_ts) |
| Task time | $util.formatTimestampDifference($task.start_ts, $end_ts) |
| Owner | #if $owner #if $owner.usertype == $koji.USERTYPES['HOST'] $owner.name #else $owner.name #end if #end if |
| Channel | #if $task.channel_id $channelName #end if |
| Host | #if $task.host_id $hostName #end if |
| Arch | $task.arch |
| Buildroot#if $len($buildroots) > 1 then 's' else ''# |
#for $buildroot in $buildroots
#if $task.method == 'vmExec' then '' else '/var/lib/mock/'#$buildroot.tag_name-$buildroot.id-$buildroot.repo_id #end for |
| Parent | #if $parent $koji.taskLabel($parent) #end if |
| Descendants | #if $len($descendents[$str($task.id)]) > 0 $task.method #end if $printChildren($task.id, $descendents) |
| Waiting? | #if $task.waiting then 'yes' else 'no'# |
| Awaited? | #if $task.awaited then 'yes' else 'no'# |
| Priority | $task.priority |
| Weight | #echo '%.2f' % $task.weight# |
| Result |
#if $abbr_result_text
$abbr_result_text
$full_result_text
#else
$full_result_text
#end if
|
| Output |
#for $volume, $filename in $output
$filename
#if $filename.endswith('.log')
(tail)
#end if
#end for #if $task.state not in ($koji.TASK_STATES.CLOSED, $koji.TASK_STATES.CANCELED, $koji.TASK_STATES.FAILED) and \ $task.method in ('buildSRPMFromSCM', 'buildArch', 'createLiveMedia', 'buildMaven', 'wrapperRPM', 'vmExec', 'createrepo', 'runroot', 'createAppliance', 'createLiveCD') Watch logs #end if |