Commit e7cd2b97 authored by Tiago Botelho's avatar Tiago Botelho

fixes the test suite for the service api file

parent f544b977
......@@ -33,7 +33,7 @@ class JenkinsDeprecatedService < CiService
'is deprecated. Use "Jenkins CI" service instead.'
end
def to_param
def self.to_param
'jenkins_deprecated'
end
......
......@@ -52,7 +52,7 @@ class JenkinsService < CiService
File.join(jenkins_url, "project/#{project_name}").to_s
end
def supported_events
def self.supported_events
%w(push merge_request tag_push)
end
......@@ -68,7 +68,7 @@ class JenkinsService < CiService
'You must have installed the Git Plugin and GitLab Plugin in Jenkins'
end
def to_param
def self.to_param
'jenkins'
end
......
......@@ -609,6 +609,8 @@ module API
SlackService,
MattermostService,
TeamcityService,
JenkinsService,
JenkinsDeprecatedService
].freeze
trigger_services = {
......
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