summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorssytnic <sergey.sytnic@binn.ru>2015-02-12 15:01:51 +0200
committerartur <artur.fursa@binn.com.ua>2015-03-31 07:13:40 +0300
commite23620057f347ad01a7af78bbf5ad1335076723b (patch)
treea2d479e4efa70994dc1aa7c116cb69d93ecf4287
parent54e320ee63421ba42a15706a6b4892c502951d44 (diff)
downloadgitlab-ci-e23620057f347ad01a7af78bbf5ad1335076723b.tar.gz
Add job name to hook data
-rw-r--r--.gitignore1
-rw-r--r--app/services/web_hook_service.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index ef64f4e..6d3c3ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,4 @@ tmp/*
/db/*.sqlite3
/log/*.log
/vendor
+/.idea
diff --git a/app/services/web_hook_service.rb b/app/services/web_hook_service.rb
index 94962a1..0918be8 100644
--- a/app/services/web_hook_service.rb
+++ b/app/services/web_hook_service.rb
@@ -18,6 +18,7 @@ class WebHookService
data = {}
data.merge!({
build_id: build.id,
+ build_name: build.job_name,
build_status: build.status,
build_started_at: build.started_at,
build_finished_at: build.finished_at,