Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4ae845d3
Commit
4ae845d3
authored
Oct 04, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update plain text version failed email
parent
f39ba1bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
15 deletions
+30
-15
app/views/notify/pipeline_failed_email.text.erb
app/views/notify/pipeline_failed_email.text.erb
+30
-15
No files found.
app/views/notify/pipeline_failed_email.text.erb
View file @
4ae845d3
Project:
<%=
@project
.
path_with_namespace
%>
Branch:
<%=
@pipeline
.
ref
%>
Commit:
<%=
@pipeline
.
short_sha
%>
(
<%=
@pipeline
.
sha
%>
)
Commit Message:
<%=
@pipeline
.
git_commit_message
%>
Commit Author:
<%=
@pipeline
.
git_author_name
%>
Pusher:
<%=
@pipeline
.
user
.
try
(
:name
)
%>
<%
failed
=
@pipeline
.
statuses
.
latest
.
failed
%>
Pipeline #
<%=
@pipeline
.
id
%>
had
<%=
failed
.
size
%>
failed
<%=
'job'
.
pluralize
(
failed
.
size
)
%>
.
<%
failed
.
each
do
|
job
|
%>
ID:
<%=
job
.
id
%>
Stage:
<%=
job
.
stage
%>
Name:
<%=
job
.
name
%>
Trace:
<%=
job
.
trace_with_state
[
:html
]
%>
<%
end
%>
Uh oh, your CI 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
%>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment