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
096a7c43
Commit
096a7c43
authored
Jun 24, 2021
by
Furkan Ayhan
Committed by
Fabio Pitino
Jul 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the service namespace
parent
52ce8d7b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
app/services/ci/pipelines/add_job_service.rb
app/services/ci/pipelines/add_job_service.rb
+1
-1
app/services/ci/retry_build_service.rb
app/services/ci/retry_build_service.rb
+1
-1
app/services/projects/update_pages_service.rb
app/services/projects/update_pages_service.rb
+1
-1
lib/api/commit_statuses.rb
lib/api/commit_statuses.rb
+1
-1
spec/services/ci/pipelines/add_job_service_spec.rb
spec/services/ci/pipelines/add_job_service_spec.rb
+1
-1
No files found.
app/services/ci/pipeline
_creation
/add_job_service.rb
→
app/services/ci/pipeline
s
/add_job_service.rb
View file @
096a7c43
# frozen_string_literal: true
module
Ci
module
Pipeline
Creation
module
Pipeline
s
class
AddJobService
attr_reader
:pipeline
...
...
app/services/ci/retry_build_service.rb
View file @
096a7c43
...
...
@@ -35,7 +35,7 @@ module Ci
check_access!
(
build
)
new_build
=
clone_build
(
build
)
::
Ci
::
Pipeline
Creation
::
AddJobService
.
new
(
build
.
pipeline
).
execute
(
new_build
)
::
Ci
::
Pipeline
s
::
AddJobService
.
new
(
build
.
pipeline
).
execute
(
new_build
)
build
.
reset
# refresh the data to get new values of `retried` and `processed`.
new_build
...
...
app/services/projects/update_pages_service.rb
View file @
096a7c43
...
...
@@ -32,7 +32,7 @@ module Projects
# Create status notifying the deployment of pages
@status
=
build_commit_status
::
Ci
::
Pipeline
Creation
::
AddJobService
.
new
(
@build
.
pipeline
).
execute
(
@status
)
::
Ci
::
Pipeline
s
::
AddJobService
.
new
(
@build
.
pipeline
).
execute
(
@status
)
@status
.
enqueue!
@status
.
run!
...
...
lib/api/commit_statuses.rb
View file @
096a7c43
...
...
@@ -100,7 +100,7 @@ module API
status
.
assign_attributes
(
attributes_for_keys
(
updatable_optional_attributes
))
if
status
.
valid?
::
Ci
::
Pipeline
Creation
::
AddJobService
.
new
(
pipeline
).
execute
(
status
,
save:
false
)
::
Ci
::
Pipeline
s
::
AddJobService
.
new
(
pipeline
).
execute
(
status
,
save:
false
)
else
render_validation_error!
(
status
)
end
...
...
spec/services/ci/pipeline
_creation
/add_job_service_spec.rb
→
spec/services/ci/pipeline
s
/add_job_service_spec.rb
View file @
096a7c43
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
RSpec
.
describe
Ci
::
Pipeline
Creation
::
AddJobService
do
RSpec
.
describe
Ci
::
Pipeline
s
::
AddJobService
do
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let
(
:job
)
{
build
(
:ci_build
)
}
...
...
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