diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 14:54:08 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 14:54:28 +0200 |
commit | 0ae300578139c0e71e8748b6106f673e4b3d19c8 (patch) | |
tree | fa75ac1a7ade54ec69dface55bc0f2f5beb61e3d /app/services | |
parent | af15b6f0e144762a38591c53b970e312c35fe65f (diff) | |
download | gitlab-ce-0ae300578139c0e71e8748b6106f673e4b3d19c8.tar.gz |
Order builds by id instead of created_at in RegisterJobService
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/register_job_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/ci/register_job_service.rb b/app/services/ci/register_job_service.rb index a7d8ad93f38..4291631913a 100644 --- a/app/services/ci/register_job_service.rb +++ b/app/services/ci/register_job_service.rb @@ -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 |