2011-02-02 09:07:17 +00:00
|
|
|
[% WRAPPER layout.tt title=title %]
|
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
2011-11-10 12:19:05 -05:00
|
|
|
[% project = build.project %]
|
|
|
|
[% jobset = build.jobset %]
|
|
|
|
[% job = build.job %]
|
|
|
|
|
2011-11-10 12:22:27 -05:00
|
|
|
<h2>Last 50 log lines of [% INCLUDE renderFullJobNameOfBuild %] build <a href="[% c.uri_for('/build' build.id) %]">[% build.id %]</a>[%IF step %] step [% step.stepnr %][% END %]</h2>
|
2011-02-02 09:07:17 +00:00
|
|
|
|
|
|
|
[% IF reload %]
|
|
|
|
<script>
|
2015-04-03 00:00:27 +02:00
|
|
|
function scrollDown() {
|
|
|
|
$("#contents").scrollTop($("#contents").get(0).scrollHeight);
|
|
|
|
}
|
|
|
|
|
2015-04-02 16:55:59 +02:00
|
|
|
function injectTail() {
|
|
|
|
$.ajax({
|
|
|
|
url: "[% url %]",
|
|
|
|
dataType: "text",
|
|
|
|
success: function (tail) {
|
|
|
|
$("#contents").text(tail);
|
2015-04-03 00:00:27 +02:00
|
|
|
scrollDown();
|
2015-04-02 16:55:59 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2015-04-03 00:00:27 +02:00
|
|
|
scrollDown();
|
2015-04-02 16:55:59 +02:00
|
|
|
injectTail();
|
|
|
|
setInterval(injectTail, 5000);
|
2011-02-02 09:07:17 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
<pre class="taillog" id="contents">
|
2013-02-14 16:51:42 +01:00
|
|
|
[% HTML.escape(contents) %]
|
2011-02-02 09:07:17 +00:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
[% END %]
|