diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2015-12-14 10:32:57 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2015-12-14 10:32:57 +0000 |
commit | e81ae1e68c03de4442265e4699710421e2f2755c (patch) | |
tree | c3af812b5a8e8dbb3637370550550de777e53b36 /app/views/notify | |
parent | c80f34257dc389369801eb112506706d46051bb1 (diff) | |
parent | a0c2a7b0cbb4567a1f09c4cbc400bf75df47a072 (diff) | |
download | gitlab-ce-e81ae1e68c03de4442265e4699710421e2f2755c.tar.gz |
Merge branch 'ci-services-migrate' into 'master'
Ci Services migrate
See merge request !1985
Diffstat (limited to 'app/views/notify')
-rw-r--r-- | app/views/notify/build_fail_email.html.haml | 23 | ||||
-rw-r--r-- | app/views/notify/build_fail_email.text.erb | 11 | ||||
-rw-r--r-- | app/views/notify/build_success_email.html.haml | 24 | ||||
-rw-r--r-- | app/views/notify/build_success_email.text.erb | 11 |
4 files changed, 69 insertions, 0 deletions
diff --git a/app/views/notify/build_fail_email.html.haml b/app/views/notify/build_fail_email.html.haml new file mode 100644 index 00000000000..3b251dc011a --- /dev/null +++ b/app/views/notify/build_fail_email.html.haml @@ -0,0 +1,23 @@ +- content_for :header do + %h1{style: "background: #c40834; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"} + GitLab (build failed) +%h3 + Project: + = link_to ci_project_url(@project) do + = @project.name + +%p + Commit: #{link_to @build.short_sha, namespace_project_commit_url(@build.gl_project.namespace, @build.gl_project, @build.sha)} +%p + Author: #{@build.commit.git_author_name} +%p + Branch: #{@build.ref} +%p + Stage: #{@build.stage} +%p + Job: #{@build.name} +%p + Message: #{@build.commit.git_commit_message} + +%p + Build details: #{link_to "Build #{@build.id}", namespace_project_build_url(@build.gl_project.namespace, @build.gl_project, @build)} diff --git a/app/views/notify/build_fail_email.text.erb b/app/views/notify/build_fail_email.text.erb new file mode 100644 index 00000000000..17a3b9b1d33 --- /dev/null +++ b/app/views/notify/build_fail_email.text.erb @@ -0,0 +1,11 @@ +Build failed for <%= @project.name %> + +Status: <%= @build.status %> +Commit: <%= @build.commit.short_sha %> +Author: <%= @build.commit.git_author_name %> +Branch: <%= @build.ref %> +Stage: <%= @build.stage %> +Job: <%= @build.name %> +Message: <%= @build.commit.git_commit_message %> + +Url: <%= namespace_project_build_url(@build.gl_project.namespace, @build.gl_project, @build) %> diff --git a/app/views/notify/build_success_email.html.haml b/app/views/notify/build_success_email.html.haml new file mode 100644 index 00000000000..c23f4b7e45a --- /dev/null +++ b/app/views/notify/build_success_email.html.haml @@ -0,0 +1,24 @@ +- content_for :header do + %h1{style: "background: #38CF5B; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"} + GitLab (build successful) + +%h3 + Project: + = link_to ci_project_url(@project) do + = @project.name + +%p + Commit: #{link_to @build.short_sha, namespace_project_commit_url(@build.gl_project.namespace, @build.gl_project, @build.sha)} +%p + Author: #{@build.commit.git_author_name} +%p + Branch: #{@build.ref} +%p + Stage: #{@build.stage} +%p + Job: #{@build.name} +%p + Message: #{@build.commit.git_commit_message} + +%p + Build details: #{link_to "Build #{@build.id}", namespace_project_build_url(@build.gl_project.namespace, @build.gl_project, @build)} diff --git a/app/views/notify/build_success_email.text.erb b/app/views/notify/build_success_email.text.erb new file mode 100644 index 00000000000..bc8b978c3d7 --- /dev/null +++ b/app/views/notify/build_success_email.text.erb @@ -0,0 +1,11 @@ +Build successful for <%= @project.name %> + +Status: <%= @build.status %> +Commit: <%= @build.commit.short_sha %> +Author: <%= @build.commit.git_author_name %> +Branch: <%= @build.ref %> +Stage: <%= @build.stage %> +Job: <%= @build.name %> +Message: <%= @build.commit.git_commit_message %> + +Url: <%= namespace_project_build_url(@build.gl_project.namespace, @build.gl_project, @build) %> |