]> git.ipfire.org Git - pbs.git/commitdiff
builds: Improve fail email
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 15:45:44 +0000 (15:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 15:45:44 +0000 (15:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/builds/messages/failed.txt

index 9168c768a5fa297e69ded83f6f41190fdcf47349..961dcae6439c25622a9110f76ea4b40d09f9d393 100644 (file)
@@ -1,4 +1,16 @@
 To: {{ recipient.email_to }}
 Subject: [{{ build }}] {{ _("Build Failed") }}
 
-XXX TODO
+{{ _("Hello %s,") % recipient }}
+
+{{ _("This is an automated email to let you know that this build has failed:") }}
+
+       /builds/{{ build.uuid }}
+
+{{ _("Jobs") }}:
+
+{% for job in build.jobs %}
+       * {{ "%8s" % job.arch }} - {% if job.is_running() %}{{ _("Running") }}{% elif job.has_failed() %}{{ _("Failed") }}{% elif job.has_finished() %}{{ _("Finished") }}{% else %}{{ _("Pending") }}{% end %}{% end %}
+
+{{ _("Sincerely,") }}
+-{{ _("The Pakfire Build Service") }}