summaryrefslogtreecommitdiff
path: root/app/models/project_services/buildkite_service.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-21 17:13:14 +0200
committerRobert Speicher <rspeicher@gmail.com>2016-04-25 15:28:24 -0400
commitef340f6e777875e1bbb38752e64ba7bea3ab2f31 (patch)
tree7a190b13b4128ba086224023253e53f605e9b10d /app/models/project_services/buildkite_service.rb
parentb79c5c40e18086f10b849d069bc1c496a851cbae (diff)
downloadgitlab-ce-ef340f6e777875e1bbb38752e64ba7bea3ab2f31.tar.gz
Ensure URL in all Service subclasses are valid
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/project_services/buildkite_service.rb')
-rw-r--r--app/models/project_services/buildkite_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/buildkite_service.rb b/app/models/project_services/buildkite_service.rb
index 3efbfd2eec3..861cc974ec4 100644
--- a/app/models/project_services/buildkite_service.rb
+++ b/app/models/project_services/buildkite_service.rb
@@ -26,7 +26,7 @@ class BuildkiteService < CiService
prop_accessor :project_url, :token, :enable_ssl_verification
- validates :project_url, presence: true, if: :activated?
+ validates :project_url, presence: true, url: true, if: :activated?
validates :token, presence: true, if: :activated?
after_save :compose_service_hook, if: :activated?
@@ -91,7 +91,7 @@ class BuildkiteService < CiService
{ type: 'text',
name: 'project_url',
placeholder: "#{ENDPOINT}/example/project" },
-
+
{ type: 'checkbox',
name: 'enable_ssl_verification',
title: "Enable SSL verification" }