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
322080ea
Commit
322080ea
authored
Mar 09, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename EE::Ci::RegisterBuildService -> EE::Ci::RegisterJobService
parent
0472a881
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/services/ci/register_job_service.rb
app/services/ci/register_job_service.rb
+1
-1
app/services/ee/ci/register_job_service.rb
app/services/ee/ci/register_job_service.rb
+3
-3
spec/services/ee/ci/register_job_service_spec.rb
spec/services/ee/ci/register_job_service_spec.rb
+1
-1
No files found.
app/services/ci/register_job_service.rb
View file @
322080ea
...
@@ -3,7 +3,7 @@ module Ci
...
@@ -3,7 +3,7 @@ module Ci
# proper pending build to runner on runner API request
# proper pending build to runner on runner API request
class
RegisterJobService
class
RegisterJobService
include
Gitlab
::
CurrentSettings
include
Gitlab
::
CurrentSettings
prepend
EE
::
Ci
::
Register
Build
Service
prepend
EE
::
Ci
::
Register
Job
Service
attr_reader
:runner
attr_reader
:runner
...
...
app/services/ee/ci/register_
build
_service.rb
→
app/services/ee/ci/register_
job
_service.rb
View file @
322080ea
module
EE
module
EE
module
Ci
module
Ci
# Register
Build
Service EE mixin
# Register
Job
Service EE mixin
#
#
# This module is intended to encapsulate EE-specific service logic
# This module is intended to encapsulate EE-specific service logic
# and be included in the `Register
Build
Service` service
# and be included in the `Register
Job
Service` service
module
Register
Build
Service
module
Register
Job
Service
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
def
builds_for_shared_runner
def
builds_for_shared_runner
...
...
spec/services/ee/ci/register_
build
_service_spec.rb
→
spec/services/ee/ci/register_
job
_service_spec.rb
View file @
322080ea
require
'spec_helper'
require
'spec_helper'
module
Ci
module
Ci
describe
Register
Build
Service
,
services:
true
do
describe
Register
Job
Service
,
services:
true
do
let!
(
:project
)
{
create
:empty_project
,
shared_runners_enabled:
false
}
let!
(
:project
)
{
create
:empty_project
,
shared_runners_enabled:
false
}
let!
(
:pipeline
)
{
create
:ci_empty_pipeline
,
project:
project
}
let!
(
:pipeline
)
{
create
:ci_empty_pipeline
,
project:
project
}
let!
(
:pending_build
)
{
create
:ci_build
,
pipeline:
pipeline
}
let!
(
:pending_build
)
{
create
:ci_build
,
pipeline:
pipeline
}
...
...
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