Created
September 2, 2016 10:10
-
-
Save wings27/a8c4f07aef67c055567db1b0b07e5a22 to your computer and use it in GitHub Desktop.
replacement for /opt/gitlab/embedded/service/gitlab-rails/app/views/notify/build_fail_email.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- content_for :header do | |
%h1{style: "background: #c40834; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"} | |
GitLab (build failed) | |
%h3 | |
Project: | |
= link_to namespace_project_url(@project.namespace, @project) do | |
= @project.name | |
%p | |
Commit: #{link_to @build.short_sha, namespace_project_commit_url(@build.project.namespace, @build.project, @build.sha)} | |
%p | |
Author: #{@build.pipeline.git_author_name} | |
%p | |
Branch: #{@build.ref} | |
%p | |
Stage: #{@build.stage} | |
%p | |
Job: #{@build.name} | |
%p | |
Message: #{@build.pipeline.git_commit_message} | |
%h3 | |
Build details: #{link_to "Build #{@build.id}", namespace_project_build_url(@build.project.namespace, @build.project, @build)} | |
%p | |
%div{style: 'color: #CCC; font-style:monospace; background-color: black; display: block; padding: 5px; font-family: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;'} | |
! #{@build.trace.gsub(/[\n\r]+/,"<br>").gsub(/\[0K/, "").gsub(/\[\d+;\d*m/, "")} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replacement for /opt/gitlab/embedded/service/gitlab-rails/app/views/notify/build_fail_email.html.haml
Added build trace.