summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update runner version only when updating contacted_atKamil Trzcinski2016-10-031-1/+1
|
* Change update interval of runners when trying to preserve contacted_atchange-update-interval-of-runnersKamil Trzcinski2016-09-071-1/+1
|
* Improve implementation of variablesKamil Trzcinski2016-07-201-0/+8
|
* Rename according to:Lin Jen-Shin2016-06-201-3/+3
| | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12563922 For clarification and consistency
* Use FIXME instead, feedback from:Lin Jen-Shin2016-06-161-2/+2
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093/diffs#note_12501400
* Return the association and check it in controller instead:Lin Jen-Shin2016-06-141-1/+1
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4641#note_12444891
* Merge branch 'prefer-assign_to' into feature/runner-lock-on-projectLin Jen-Shin2016-06-141-1/+1
|\ | | | | | | | | | | | | * prefer-assign_to: Give 409 Conflict whenever the runner was already enabled We're checking return value rather than rescuing exceptions Prefer Runner#assign_to instead of creating directly
| * Give 409 Conflict whenever the runner was already enabledprefer-assign_toLin Jen-Shin2016-06-141-1/+1
| |
| * We're checking return value rather than rescuing exceptionsLin Jen-Shin2016-06-141-1/+1
| |
* | Rename specific_for to available_for:Lin Jen-Shin2016-06-141-1/+1
| | | | | | | | | | Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12413950
* | Merge conditions. Not worth an additional pointless method:Lin Jen-Shin2016-06-091-9/+3
| | | | | | | | | | Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12321267
* | Renamed to available_for? Feedback from:Lin Jen-Shin2016-06-091-2/+2
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12321240
* | Remove Build#can_be_served? and rename Runner#can_serve? to can_pick?Lin Jen-Shin2016-06-091-1/+1
| | | | | | | | This also moves tests from build_spec.rb to runner_spec.rb
* | Manually build the SQL so that it properly skips Rails.Lin Jen-Shin2016-06-091-1/+2
| |
* | Found a workaround for that weird SQL error:Lin Jen-Shin2016-06-091-1/+3
| | | | | | | | | | | | | | | | | | Without that, Rails would complain: > bind message supplies 5 parameters, but prepared statement "a4" requires 4 However without this workaround it would still work in Rails console, so I still think this is a Rails bug somewhere.
* | WIP, try to add views for locked runnersLin Jen-Shin2016-06-091-1/+1
| |
* | Introduced Ci::Runner.specific_for for getting specific runners:Lin Jen-Shin2016-06-091-0/+4
| | | | | | | | for a particular project.
* | Implement the logic for locking runnerLin Jen-Shin2016-06-091-0/+18
|/
* Enable Style/NegatedIf Rubocop coprubocop/enable-negatedif-style-copGrzegorz Bizon2016-05-301-1/+1
| | | | | | | Favor `unless` over `if` for negative conditions (or control flow ||). See #17478
* Rename method that validates runner tag constrainsGrzegorz Bizon2016-05-191-2/+2
|
* Move runner validator to separate private methodGrzegorz Bizon2016-05-191-6/+10
|
* Improve displaying validation messages for runnerGrzegorz Bizon2016-05-191-3/+7
|
* Add custom validator to runner modelGrzegorz Bizon2016-05-191-0/+7
|
* Extend runner config options for untagged jobsGrzegorz Bizon2016-05-191-1/+1
|
* Merge branch 'fix/reuse-runner-edit-form-in-admin-area' into 'master' Rémy Coutable2016-05-121-1/+2
|\ | | | | | | | | | | | | | | | | Reuse runners edit form in admin and project area Reuse runners edit form in admin and project area. ![reuse_runner_form](/uploads/d16e3ee196151b68f584d947f38a7c29/reuse_runner_form.png) See merge request !4094
| * Use % notation for arrays in runner model constantsfix/reuse-runner-edit-form-in-admin-areaGrzegorz Bizon2016-05-111-2/+2
| |
| * Share form editable attributes mf runner via modelGrzegorz Bizon2016-05-101-0/+1
| |
* | Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-19/+0
|/ | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Annotate the modelsZeger-Jan van de Weg2016-05-061-7/+7
|
* Removed arel_table receiver from search methodsYorick Peterse2016-03-111-1/+1
| | | | | We can just use "arel_table" in these cases instead of "SomeClass.arel_table".
* Use ILIKE/LIKE for searching CI runnersYorick Peterse2016-03-111-3/+17
|
* Change interpolation to named placeholder in owned_or_shared scopeTomasz Maczukin2016-02-191-1/+1
|
* Add basic runners management APITomasz Maczukin2016-02-191-0/+6
| | | | | | | - add feature to list runners - add feature to show runners details - add feature to delete runner - add feature to update runner
* Remove ci_ prefix from all ci related thingsKamil Trzcinski2015-12-111-1/+1
|
* Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-6/+2
|
* Annotate modelsDmitriy Zaporozhets2015-11-131-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix specific runner visibilityKamil Trzcinski2015-10-261-0/+1
|
* Merge branch 'builds-view' into 'master' Kamil Trzciński2015-10-151-2/+2
|\ | | | | | | | | | | | | | | | | | | Added builds view ![Screen_Shot_2015-10-13_at_19.02.48](https://gitlab.com/gitlab-org/gitlab-ce/uploads/95bb3a7d9d603678fdd077558637045d/Screen_Shot_2015-10-13_at_19.02.48.png) /cc @dzaporozhets @vsizov See merge request !1593
| * Fix specsKamil Trzcinski2015-10-141-1/+1
| |
| * Added builds viewKamil Trzcinski2015-10-141-2/+2
| |
* | Show warning if build doesn't have runners with specified tags or runners ↵Kamil Trzcinski2015-10-141-0/+17
|/ | | | | | | | didn't connect recently Slightly refactor runner status detection: moving it to Runner class Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
* Fix register_build_service testsKamil Trzcinski2015-09-291-0/+4
|
* Fix: features/ci/admin/runners_spec.rbKamil Trzcinski2015-09-151-1/+1
|
* Groundwork for merging CI into CEDouwe Maan2015-08-251-0/+80