BigW Consortium Gitlab

pipeline_failed_email.text.erb 1.05 KB
Newer Older
1
Your pipeline has failed.
2

3
Project: <%= @project.name %> ( <%= project_url(@project) %> )
4
Branch: <%= @pipeline.ref %> ( <%= commits_url(@pipeline) %> )
5
<% if @merge_request -%>
6
Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge_request) %> )
7 8
<% end -%>

9
Commit: <%= @pipeline.short_sha %> ( <%= commit_url(@pipeline) %> )
10 11
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
<% commit = @pipeline.commit -%>
12
<% if commit.author -%>
13
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
14 15
<% else -%>
Commit Author: <%= commit.author_name %>
16 17 18
<% end -%>

<% failed = @pipeline.statuses.latest.failed -%>
19
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) had <%= failed.size %> failed <%= 'build'.pluralize(failed.size) %>.
20 21

<% failed.each do |build| -%>
22
<%= render "notify/links/#{build.to_partial_path}", pipeline: @pipeline, build: build %>
23 24
Stage: <%= build.stage %>
Name: <%= build.name %>
25
<% if build.has_trace? -%>
26
Trace: <%= build.trace_with_state(last_lines: 10)[:text] %>
27
<% end -%>
28 29

<% end -%>