summaryrefslogtreecommitdiff
path: root/app/views/notify/pipeline_failed_email.text.erb
blob: 373d5020b2853a771530328ecc0496bf34c445c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Your pipeline has failed.

Project: <%= @project.name %> ( <%= namespace_project_url(@project.namespace, @project) %> )
Branch: <%= @pipeline.ref %> ( <%= namespace_project_commits_url(@project.namespace, @project, @pipeline.ref) %> )
<% if @merge_request -%>
Merge Request: <%= @merge_request.to_reference %> ( <%= namespace_project_merge_request_url(@project.namespace, @project, @merge_request) %> )
<% end -%>

Commit: <%= @pipeline.short_sha %> ( <%= namespace_project_commit_url(@project.namespace, @project, @pipeline.sha) %> )
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
<% commit = @pipeline.commit -%>
<% if commit.author.nil? -%>
Commit Author: <%= commit.author_name %>
<% else -%>
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
<% end -%>

<% failed = @pipeline.statuses.latest.failed -%>
Pipeline #<%= @pipeline.id %> ( <%= namespace_project_pipeline_url(@project.namespace, @project, @pipeline.id) %> ) had <%= failed.size %> failed <%= 'build'.pluralize(failed.size) %>.

<% failed.each do |build| -%>
Build #<%= build.id %> ( <%= namespace_project_build_url(@project.namespace, @project, build.id) %> )
Stage: <%= build.stage %>
Name: <%= build.name %>
Trace: <%= build.trace_with_state(last_lines: 10)[:text] %>

<% end -%>

Manage all notifications: <%= profile_notifications_url %>
Help: <%= help_url %>