Commit edd72687 authored by Marin Jankovski's avatar Marin Jankovski

Add jenkins service to the list.

parent b2fb6e0e
...@@ -73,7 +73,6 @@ class Project < ActiveRecord::Base ...@@ -73,7 +73,6 @@ class Project < ActiveRecord::Base
has_one :asana_service, dependent: :destroy has_one :asana_service, dependent: :destroy
has_one :gemnasium_service, dependent: :destroy has_one :gemnasium_service, dependent: :destroy
has_one :slack_service, dependent: :destroy has_one :slack_service, dependent: :destroy
has_one :jira_service, dependent: :destroy
has_one :jenkins_service, dependent: :destroy has_one :jenkins_service, dependent: :destroy
has_one :buildbox_service, dependent: :destroy has_one :buildbox_service, dependent: :destroy
has_one :bamboo_service, dependent: :destroy has_one :bamboo_service, dependent: :destroy
......
...@@ -99,8 +99,26 @@ class Service < ActiveRecord::Base ...@@ -99,8 +99,26 @@ class Service < ActiveRecord::Base
end end
def self.available_services_names def self.available_services_names
%w(gitlab_ci campfire hipchat pivotaltracker flowdock assembla asana %w(
emails_on_push gemnasium slack pushover buildbox bamboo teamcity jira redmine custom_issue_tracker) gitlab_ci
campfire
hipchat
pivotaltracker
flowdock
assembla
asana
emails_on_push
gemnasium
slack
jenkins
pushover
buildbox
bamboo
teamcity
jira
redmine
custom_issue_tracker
)
end end
def self.create_from_template(project_id, template) def self.create_from_template(project_id, template)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment