Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
edd72687
Commit
edd72687
authored
Feb 21, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add jenkins service to the list.
parent
b2fb6e0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
app/models/project.rb
app/models/project.rb
+0
-1
app/models/service.rb
app/models/service.rb
+20
-2
No files found.
app/models/project.rb
View file @
edd72687
...
@@ -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
...
...
app/models/service.rb
View file @
edd72687
...
@@ -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
)
...
...
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