BigW Consortium Gitlab

pipeline_failed_email.text.erb 1.46 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
<% end -%>
17 18 19 20 21 22 23
<% if commit.different_committer? -%>
<% if commit.committer -%>
Committed by: <%= commit.committer.name %> ( <%= user_url(commit.committer) %> )
<% else -%>
Committed by: <%= commit.committer_name %>
<% end -%>
<% end -%>
24

25 26 27 28 29
<% if @pipeline.user -%>
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by <%= @pipeline.user.name %> ( <%= user_url(@pipeline.user) %> )
<% else -%>
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by API
<% end -%>
30
<% failed = @pipeline.statuses.latest.failed -%>
31
had <%= failed.size %> failed <%= 'build'.pluralize(failed.size) %>.
32 33

<% failed.each do |build| -%>
34
<%= render "notify/links/#{build.to_partial_path}", pipeline: @pipeline, build: build %>
35 36
Stage: <%= build.stage %>
Name: <%= build.name %>
37
<% if build.has_trace? -%>
38
Trace: <%= build.trace.raw(last_lines: 10) %>
39
<% end -%>
40 41

<% end -%>