2016-10-06 15:09:24 +00:00
|
|
|
Your pipeline has failed.
|
2016-10-03 18:55:08 +00:00
|
|
|
|
2016-10-12 17:43:23 +00:00
|
|
|
Project: <%= @project.name %> ( <%= project_url(@project) %> )
|
2016-10-13 19:33:49 +00:00
|
|
|
Branch: <%= @pipeline.ref %> ( <%= commits_url(@pipeline) %> )
|
2016-10-03 18:55:08 +00:00
|
|
|
<% if @merge_request -%>
|
2016-10-12 17:43:23 +00:00
|
|
|
Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge_request) %> )
|
2016-10-03 18:55:08 +00:00
|
|
|
<% end -%>
|
|
|
|
|
2016-10-13 19:33:49 +00:00
|
|
|
Commit: <%= @pipeline.short_sha %> ( <%= commit_url(@pipeline) %> )
|
2016-10-03 18:55:08 +00:00
|
|
|
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
|
|
|
|
<% commit = @pipeline.commit -%>
|
2016-10-13 05:18:00 +00:00
|
|
|
<% if commit.author -%>
|
2016-10-03 18:55:08 +00:00
|
|
|
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
|
2016-10-13 05:18:00 +00:00
|
|
|
<% else -%>
|
|
|
|
Commit Author: <%= commit.author_name %>
|
2016-10-03 18:55:08 +00:00
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<% failed = @pipeline.statuses.latest.failed -%>
|
2016-10-13 19:33:49 +00:00
|
|
|
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) had <%= failed.size %> failed <%= 'build'.pluralize(failed.size) %>.
|
2016-10-03 18:55:08 +00:00
|
|
|
|
|
|
|
<% failed.each do |build| -%>
|
2016-11-21 12:29:34 +00:00
|
|
|
Build #<%= build.id %><%= if build.kind_of?(Ci::Build) then " ( #{pipeline_build_url(@pipeline, build)} )" end %>
|
2016-10-03 18:55:08 +00:00
|
|
|
Stage: <%= build.stage %>
|
|
|
|
Name: <%= build.name %>
|
2016-11-21 12:29:34 +00:00
|
|
|
<% if build.kind_of?(Ci::Build) -%>
|
2016-10-03 18:55:08 +00:00
|
|
|
Trace: <%= build.trace_with_state(last_lines: 10)[:text] %>
|
2016-11-21 12:29:34 +00:00
|
|
|
<% end -%>
|
2016-10-03 18:55:08 +00:00
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
|
2016-10-07 22:05:31 +00:00
|
|
|
You're receiving this email because of your account on <%= Gitlab.config.gitlab.host %>.
|
2016-10-03 18:55:08 +00:00
|
|
|
Manage all notifications: <%= profile_notifications_url %>
|
|
|
|
Help: <%= help_url %>
|