* Basic release management: releases are now dynamically computed as
database queries from a set of jobs that have to be in a release. E.g. a patchelf release might consist of the jobs "tarball", "build", and "rpm_fedora10i386". Here the first job ("tarball") is the primary job: all the others have it as an input. The primary job supplies the identity of the release.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
[% WRAPPER layout.tt title="Job Status" %]
|
||||
[% PROCESS common.tt %]
|
||||
|
||||
<h1>Job Status[% IF curProject %] in Project <tt>[% curProject.name %]</tt>[% END %]</h1>
|
||||
<h1>Job Status[% IF curProject %] of Project <tt>[% curProject.name %]</tt>[% END %]</h1>
|
||||
|
||||
<p>Below are the latest builds for each job.</p>
|
||||
|
||||
|
@ -99,9 +99,9 @@
|
||||
<div class="title"><a href="[% c.uri_for('/project' project.name) %]">[% HTML.escape(project.displayname) %]</a></div>
|
||||
[% IF curProject.name == project.name %]
|
||||
<ul class="subsubmenu">
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'edit') title = "Edit" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'jobstatus') title = "Job status" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'all') title = "All builds" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'edit') title = "Edit" %]
|
||||
</ul>
|
||||
[% END %]
|
||||
</li>
|
||||
|
@ -96,7 +96,11 @@
|
||||
<tr>
|
||||
<th>Last checked:</th>
|
||||
<td>
|
||||
[% PROCESS renderDateTime timestamp = jobset.lastcheckedtime %]
|
||||
[% IF jobset.lastcheckedtime %]
|
||||
[% PROCESS renderDateTime timestamp = jobset.lastcheckedtime %]
|
||||
[% ELSE %]
|
||||
<em>never</em>
|
||||
[% END %]
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
60
src/Hydra/root/releases.tt
Normal file
60
src/Hydra/root/releases.tt
Normal file
@ -0,0 +1,60 @@
|
||||
[% WRAPPER layout.tt title="Releases" %]
|
||||
[% PROCESS common.tt %]
|
||||
[% USE HTML %]
|
||||
|
||||
<h1>Releases</h1>
|
||||
|
||||
<!-- <p>Description: [% releaseSet.description %]</p> -->
|
||||
|
||||
<table class="tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>#</th>
|
||||
<th>Release</th>
|
||||
[% FOREACH job IN jobs %]
|
||||
<th>[% IF job.description; HTML.escape(job.description); ELSE %]<tt>[% job.job %]</tt> ([% job.attrs %])[% END %]</th>
|
||||
[% END %]
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
[% FOREACH release IN releases %]
|
||||
<tr>
|
||||
<td>
|
||||
[% IF release.status == 0 %]
|
||||
<img src="/static/images/success.gif" />
|
||||
[% ELSIF release.status == 1 %]
|
||||
<img src="/static/images/failure.gif" />
|
||||
[% ELSIF release.status == 2 %]
|
||||
<img src="/static/images/question-mark.png" />
|
||||
[% END %]
|
||||
</td>
|
||||
<td>[% release.id %]</td>
|
||||
<td>
|
||||
[% IF release.releasename %]
|
||||
<tt>[% release.releasename %]</tt>
|
||||
[% ELSE %]
|
||||
<em>No name</em>
|
||||
[% END %]
|
||||
</td>
|
||||
[% FOREACH job IN release.jobs %]
|
||||
<td>
|
||||
[% IF job.build %]
|
||||
<a href="[% c.uri_for('/build' job.build.id) %]">
|
||||
[% IF job.build.resultInfo.buildstatus == 0 %]
|
||||
<img src="/static/images/success.gif" />
|
||||
[% ELSE %]
|
||||
<img src="/static/images/failure.gif" />
|
||||
[% END %]
|
||||
[% job.build.id %]
|
||||
</a>
|
||||
[% END %]
|
||||
</td>
|
||||
[% END %]
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
[% END %]
|
14
src/Hydra/root/releasesets.tt
Normal file
14
src/Hydra/root/releasesets.tt
Normal file
@ -0,0 +1,14 @@
|
||||
[% WRAPPER layout.tt title="Release Sets" %]
|
||||
[% PROCESS common.tt %]
|
||||
|
||||
<h1>Release Sets</h1>
|
||||
|
||||
<p>Project <tt>[% curProject.name %]</tt> has the following release sets:</p>
|
||||
|
||||
<ul>
|
||||
[% FOREACH releaseSet IN releaseSets %]
|
||||
<li><a href="[% c.uri_for('/releases' curProject.name releaseSet.name) %]"><tt>[% releaseSet.name %]</tt></a></li>
|
||||
[% END %]
|
||||
</ul>
|
||||
|
||||
[% END %]
|
BIN
src/Hydra/root/static/images/question-mark.png
Normal file
BIN
src/Hydra/root/static/images/question-mark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 586 B |
Reference in New Issue
Block a user