BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3ea0ac9a
Commit
3ea0ac9a
authored
Jul 10, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'backport-exceptions-argument' into 'master'
Allow passing exceptions when creating project services See merge request !12745
parents
b0cb64a1
8947232b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
project.rb
app/models/project.rb
+4
-2
No files found.
app/models/project.rb
View file @
3ea0ac9a
...
...
@@ -801,10 +801,12 @@ class Project < ActiveRecord::Base
update_column
(
:has_external_wiki
,
services
.
external_wikis
.
any?
)
end
def
find_or_initialize_services
def
find_or_initialize_services
(
exceptions:
[])
services_templates
=
Service
.
where
(
template:
true
)
Service
.
available_services_names
.
map
do
|
service_name
|
available_services_names
=
Service
.
available_services_names
-
exceptions
available_services_names
.
map
do
|
service_name
|
service
=
find_service
(
services
,
service_name
)
if
service
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment