debian-mirror-gitlab/app/views/notify/pipeline_failed_email.text.erb

42 lines
1.5 KiB
Text
Raw Normal View History

2016-11-03 12:29:30 +05:30
Your pipeline has failed.
Project: <%= @project.name %> ( <%= project_url(@project) %> )
2019-12-21 20:55:43 +05:30
Branch: <%= @pipeline.source_ref %> ( <%= commits_url(@pipeline) %> )
2016-11-03 12:29:30 +05:30
<% if @merge_request -%>
Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge_request) %> )
<% end -%>
Commit: <%= @pipeline.short_sha %> ( <%= commit_url(@pipeline) %> )
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
<% commit = @pipeline.commit -%>
<% if commit.author -%>
2019-02-15 15:39:39 +05:30
Commit Author: <%= sanitize_name(commit.author.name) %> ( <%= user_url(commit.author) %> )
2016-11-03 12:29:30 +05:30
<% else -%>
Commit Author: <%= commit.author_name %>
<% end -%>
2017-08-17 22:00:37 +05:30
<% if commit.different_committer? -%>
<% if commit.committer -%>
2019-02-15 15:39:39 +05:30
Committed by: <%= sanitize_name(commit.committer.name) %> ( <%= user_url(commit.committer) %> )
2017-08-17 22:00:37 +05:30
<% else -%>
Committed by: <%= commit.committer_name %>
<% end -%>
<% end -%>
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
<% if @pipeline.user -%>
2019-02-15 15:39:39 +05:30
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by <%= sanitize_name(@pipeline.user.name) %> ( <%= user_url(@pipeline.user) %> )
2017-08-17 22:00:37 +05:30
<% else -%>
Pipeline #<%= @pipeline.id %> ( <%= pipeline_url(@pipeline) %> ) triggered by API
<% end -%>
2016-11-03 12:29:30 +05:30
<% failed = @pipeline.statuses.latest.failed -%>
2017-08-17 22:00:37 +05:30
had <%= failed.size %> failed <%= 'build'.pluralize(failed.size) %>.
2016-11-03 12:29:30 +05:30
<% failed.each do |build| -%>
2017-08-17 22:00:37 +05:30
<%= render "notify/links/#{build.to_partial_path}", pipeline: @pipeline, build: build %>
2016-11-03 12:29:30 +05:30
Stage: <%= build.stage %>
Name: <%= build.name %>
2017-08-17 22:00:37 +05:30
<% if build.has_trace? -%>
2020-03-09 13:42:32 +05:30
Trace: <%= build.trace.raw(last_lines: 30) %>
2016-11-03 12:29:30 +05:30
<% end -%>
2017-08-17 22:00:37 +05:30
<% end -%>