X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/1c558dd75c7ab4f9f4b99ed80713c811d69ab24c..77f0f9c5c215c72ce7a105bb3ac16d1c8f3b8a68:/templates/log.tt diff --git a/templates/log.tt b/templates/log.tt index da255f2..29d51e8 100644 --- a/templates/log.tt +++ b/templates/log.tt @@ -1,6 +1,13 @@ +[%# + +Copyright (c) 2003-2010, Andrew Dunstan + +See accompanying License file for license details + +-%] [% PERL %] use POSIX qw(ceil); - my $lrfactor = 6; + my $lrfactor = 4; $stash->set(lrfactor => $lrfactor); my $rows = $stash->get('log_file_names'); my $logrows = ceil(scalar(@$rows)/$lrfactor); @@ -18,6 +25,13 @@ bodyclass = 'none' pagebutton = 'none' %] +[%- BLOCK gitlog ; + commitref = clog.replace('^commit ([0-9A-Fa-f]+)(.|\n)*','$1'); + logtail = clog.replace('^commit ([0-9A-Fa-f]+)',''); + logtail = logtail.replace('\n',' '); + +%][% commitref %][% logtail | html %] +[% END -%]
Stage Logs | +
---|
Stage Logs Total run time [% run_time %] |
[% END %]
[% IF loop.count > 1 and loop.count % lrfactor == 1 %]|
---|---|
[% striplog %] | +[% striplog %] ([% stage_times.$logstage.stage_duration %]) | [% IF loop.count % lrfactor == 0 %]
Files changed this run-[%- IF changed_this_run.0 -%] +[%- FOREACH changed IN changed_this_run %] [% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %] [%- END -%] ++[% END %] + |
+
+[% IF changed_this_run_logs.0 %]
+Git log++[% IF last_build_git_ref && git_head_ref %] +Change Set for this build +[% END %] +[% FOREACH clog IN changed_this_run_logs ; PROCESS gitlog -%] +[%- END -%] ++ |
[%- ELSE %]
not recorded
-[% END -%]
+
+[% END -%]
+
Files changed since last success-[%- IF changed_since_success.0 %] +[%- FOREACH changed IN changed_since_success %] [% changed.0 ; IF scm == 'cvs'; ' '; changed.1; END %] [%- END -%] ++[% END %] + |
+
+[% IF changed_since_success_logs.0 %]
+Git log++Change Set prior to this build + +Change Set including this build + +[% FOREACH clog IN changed_since_success_logs ; PROCESS gitlog -%] +[%- END -%] ++ |
[%- ELSE %]
+
[% log | html %]