Add jenkins service to the list.

This commit is contained in:
Marin Jankovski
2015-02-21 14:37:54 -08:00
parent b2fb6e0e0c
commit edd726871b
2 changed files with 20 additions and 3 deletions
-1
View File
@@ -73,7 +73,6 @@ class Project < ActiveRecord::Base
has_one :asana_service, dependent: :destroy
has_one :gemnasium_service, dependent: :destroy
has_one :slack_service, dependent: :destroy
has_one :jira_service, dependent: :destroy
has_one :jenkins_service, dependent: :destroy
has_one :buildbox_service, dependent: :destroy
has_one :bamboo_service, dependent: :destroy
+20 -2
View File
@@ -99,8 +99,26 @@ class Service < ActiveRecord::Base
end
def self.available_services_names
%w(gitlab_ci campfire hipchat pivotaltracker flowdock assembla asana
emails_on_push gemnasium slack pushover buildbox bamboo teamcity jira redmine custom_issue_tracker)
%w(
gitlab_ci
campfire
hipchat
pivotaltracker
flowdock
assembla
asana
emails_on_push
gemnasium
slack
jenkins
pushover
buildbox
bamboo
teamcity
jira
redmine
custom_issue_tracker
)
end
def self.create_from_template(project_id, template)