* Allow builds to be restarted (if they failed with a transient error,

e.g. interrupted or network problems).
This commit is contained in:
Eelco Dolstra
2009-03-02 16:03:41 +00:00
parent c7736f0643
commit f75924db95
5 changed files with 70 additions and 23 deletions

View File

@ -15,6 +15,11 @@
</h1>
[% IF flashMsg %]
<p class="error">[% flashMsg %]</p>
[% END %]
<h2>Information</h2>
<table class="layoutTable">
@ -31,7 +36,7 @@
<strong>Success</strong>
[% ELSIF build.resultInfo.buildstatus == 1 %]
<img src="/static/images/failure.gif" />
<span class="error">Build returned a non-zero exit code</span>
<span class="error">Build returned a non-zero exit code</span>
[% ELSIF build.resultInfo.buildstatus == 2 %]
<img src="/static/images/failure.gif" />
<span class="error">A dependency of the build failed</span>
@ -39,6 +44,9 @@
<img src="/static/images/failure.gif" />
<span class="error">Build failed</span>
(see <a href="#nix-error">below</a>)
<form action="[% c.uri_for('/build' build.id 'restart') %]" method="post" class="inline">
<button id="delete-project" type="submit">Restart</button>
</form>
[% END %]
[% ELSIF build.schedulingInfo.busy %]
<strong>Build in progress</strong>

View File

@ -436,4 +436,8 @@ select {
button {
background-color: #f0f0e0;
}
}
form.inline {
display: inline;
}