gitlab-org--gitlab-foss/app/views/notify/pipeline_failed_email.text.erb

42 lines
1.5 KiB
Text
Raw Normal View History

Your pipeline has failed.
2016-10-03 14:55:08 -04:00
Project: <%= @project.name %> ( <%= project_url(@project) %> )
Branch: <%= @pipeline.ref %> ( <%= commits_url(@pipeline) %> )
2016-10-03 14:55:08 -04:00
<% if @merge_request -%>
Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge_request) %> )
2016-10-03 14:55:08 -04:00
<% end -%>
Commit: <%= @pipeline.short_sha %> ( <%= commit_url(@pipeline) %> )
2016-10-03 14:55:08 -04:00
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
<% commit = @pipeline.commit -%>
2016-10-13 01:18:00 -04:00
<% if commit.author -%>
2016-10-03 14:55:08 -04:00
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
2016-10-13 01:18:00 -04:00
<% else -%>
Commit Author: <%= commit.author_name %>
2016-10-03 14:55:08 -04:00
<% end -%>
<% if commit.different_committer? -%>
<% if commit.committer -%>
Committed by: <%= commit.committer.name %> ( <%= user_url(commit.committer) %> )
<% else -%>
Committed by: <%= commit.committer_name %>
<% end -%>
<% end -%>
2016-10-03 14:55:08 -04:00
<% 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 -%>
2016-10-03 14:55:08 -04:00
<% failed = @pipeline.statuses.latest.failed -%>
had <%= failed.size %> failed <%= 'build'.pluralize(failed.size) %>.
2016-10-03 14:55:08 -04:00
<% failed.each do |build| -%>
<%= render "notify/links/#{build.to_partial_path}", pipeline: @pipeline, build: build %>
2016-10-03 14:55:08 -04:00
Stage: <%= build.stage %>
Name: <%= build.name %>
<% if build.has_trace? -%>
Trace: <%= build.trace.raw(last_lines: 10) %>
<% end -%>
2016-10-03 14:55:08 -04:00
<% end -%>