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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
0ae30057
Commit
0ae30057
authored
May 03, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Order builds by id instead of created_at in RegisterJobService
parent
af15b6f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/services/ci/register_job_service.rb
app/services/ci/register_job_service.rb
+2
-2
No files found.
app/services/ci/register_job_service.rb
View file @
0ae30057
...
...
@@ -85,7 +85,7 @@ module Ci
end
def
builds_for_project_runner
new_builds
.
where
(
project:
runner
.
projects
.
without_deleted
.
with_builds_enabled
).
order
(
'
created_at
ASC'
)
new_builds
.
where
(
project:
runner
.
projects
.
without_deleted
.
with_builds_enabled
).
order
(
'
id
ASC'
)
end
def
builds_for_group_runner
...
...
@@ -94,7 +94,7 @@ module Ci
.
with_group_runners_enabled
.
with_builds_enabled
.
without_deleted
new_builds
.
where
(
project:
projects
).
order
(
'
created_at
ASC'
)
new_builds
.
where
(
project:
projects
).
order
(
'
id
ASC'
)
end
def
running_builds_for_shared_runners
...
...
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