BigW Consortium Gitlab

pipeline_success_email.text.erb 1.32 KB
Newer Older
1
Your pipeline has passed.
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

<% build_count = @pipeline.statuses.latest.size -%>
26
<% stage_count = @pipeline.stages_count -%>
27 28 29 30 31 32
<% 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 -%>
successfully completed <%= build_count %> <%= 'build'.pluralize(build_count) %> in <%= stage_count %> <%= 'stage'.pluralize(stage_count) %>.