summaryrefslogtreecommitdiff
path: root/app/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'tc-realtime-every-pipeline-on-mr' into 'master' Kamil Trzciński2017-04-241-6/+10
|\ | | | | | | | | | | | | Properly expire cache for **all** MRs of a pipeline Closes #31040 See merge request !10770
| * Use a better performing query to find all MRs for pipelineToon Claes2017-04-241-7/+5
| | | | | | | | And add some specs.
| * Properly expire cache for **all** MRs of a pipelineToon Claes2017-04-241-2/+8
| | | | | | | | | | Turn ExpirePipelineCacheService into Worker so it can fetch all the merge requests for which the pipeline runs or did run against.
* | Fix missing pipeline duration for blocked pipelinesGrzegorz Bizon2017-04-211-0/+4
|/
* Add foreign key on trigger requestszj-fk-ci-triggersZ.J. van de Weg2017-04-111-1/+1
| | | | | | | | | I started out as I missed the foreign key on ci_triggers and projects. However, it seemed Yorick caught this already on gitlab-org/gitlab-ce!9388. Still I found a missing foreign key, between the trigger requests and triggers. This commit adds it, and removes the depend: :destroy on the Rails model Ci::Triggers
* Merge branch ↵Sean McGivern2017-04-072-5/+22
|\ | | | | | | | | | | | | | | 'dosuken123/gitlab-ce-2989-run-cicd-pipelines-on-a-schedule-idea1-basic-backend-implementation-with-quick-ui' into 'master' Add "engineering" UI for Pipeline Schedule See merge request !10533
| * Fix test failuresKamil Trzcinski2017-04-071-2/+3
| |
| * Update code to remove no longer needed changesKamil Trzcinski2017-04-071-1/+1
| |
| * Fix ref referenceKamil Trzcinski2017-04-072-11/+10
| |
| * N/A to None. Revert validates from validates_presence_of.Shinya Maeda2017-04-071-1/+1
| |
| * Add def trigger_schedule in Trigger. Use persisted? for checling existanceShinya Maeda2017-04-071-0/+4
| |
| * before_create :set_project. Now TriggerSchedule saves project from parentShinya Maeda2017-04-071-1/+5
| |
| * Use allow_destroy. Remove condtion from form.haml.Shinya Maeda2017-04-072-15/+5
| |
| * Add form for scheduled triggerShinya Maeda2017-04-072-1/+20
| |
* | Use `Ci::ExpirePipelineCacheService` to set `ProjectPipelinestatus`bvl-fix-project-ci-status-cacheBob Van Landuyt2017-04-071-5/+0
| |
* | Rename `ProjectBuildStatus` -> `ProjectPipelineStatus`Bob Van Landuyt2017-04-071-1/+1
| |
* | Wrap updating of cache after pipeline transition in class methodBob Van Landuyt2017-04-071-1/+1
| |
* | Update project build status cache when transitioningBob Van Landuyt2017-04-071-3/+2
| |
* | Rename Ci::PipelineStatus -> Ci::ProjectBuildStatusBob Van Landuyt2017-04-072-87/+1
|/
* Merge branch '8998_skip_pending_commits_if_not_head' into 'master' Kamil Trzciński2017-04-071-1/+25
|\ | | | | | | | | Add auto-cancel for pending pipelines on branch, if they are not HEAD See merge request !9362
| * Fix bad conflict resolutionLin Jen-Shin2017-04-071-6/+5
| |
| * Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-04-072-19/+11
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8998_skip_pending_commits_if_not_head * upstream/master: (58 commits) Fix icon name error Rewrite system note helper Change edit icon Leave icon area blank if legacy note; remove diamond icon Fix positioning of note icons Fix newline errors Add remaining system note icons Add system notes icon helper; add icons Fixed specs Updated JS that was causing the hints to appear & then disappear Update tests Fix broken spinach test Reuse code Improve shortcuts code Adds ShortcutsDashboardNavigation to globals comment since its a global variable Fix shortcut specs Reorganize shortcut help menu Change todos shortcut to shift Change shortcuts Switch global shortcuts to shift; reuse key styles from help menu Map bindings to lowercase letters; only show key bindings when using keyboard shortcut ...
| * \ Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-04-073-135/+52
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8998_skip_pending_commits_if_not_head * upstream/master: (197 commits) Add text to break up diagrams Implement review comments from @DouweM for !10467. Fix rubocop offence Linking to edit file directly Optimise trace handling code to use streaming instead of full read Use config.toml to configure Gitaly Fix indexes in container repositories table Recent search history for issues Fix rubocop Use change direction in spec Use be_pending Improve trigger_schedule.rb Implement a offset calculation on cron_parser_spec Clean up trigger_schedule_worker_spec.rb Improve instantiate recursion in cron_parser.rb Fix unnecessary changes in schema.rb Add empty line in cron_parser.rb Use parenthesis for respond_to :ref Define next_time as let in trigger_schedule_spec Remove next_run_at: nil from trigger_schedule_spec ...
| * | | Fix rubocop offenses8998_skip_pending_commits_if_not_headLin Jen-Shin2017-04-061-1/+1
| | | |
| * | | Use before_transitionLin Jen-Shin2017-04-061-4/+4
| | | |
| * | | We don't have to save, transition would save for usLin Jen-Shin2017-04-061-1/+1
| | | |
| * | | Also track auto-cancelling in jobs, detail:Lin Jen-Shin2017-04-061-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not only tracking auto-cancelling in pipelines, we'll also track this in jobs because pipelines could be retried and the information would get lost when this happened. Also erase auto-cancelling relation for pipelines when they're retried.
| * | | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-04-061-0/+6
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8998_skip_pending_commits_if_not_head * upstream/master: (64 commits) Merge branch 'open-redirect-fix-continue-to' into 'security' Merge branch 'open-redirect-host-fix' into 'security' Merge branch 'path-disclosure-proj-import-export' into 'security' Merge branch '29364-private-projects-mr-fix' Merge branch '30125-markdown-security' Issue title realtime Update CHANGELOG.md for 8.16.9 Update CHANGELOG.md for 8.17.5 Update CHANGELOG.md for 9.0.4 Add "search" optional param and docs for V4 Use PDFLab to render PDFs in GitLab Separate Scala from Java in CI examples Fix broken link Reorganize CI examples, add more links Refactor CI index page Remove deprecated field from workhorse response Use gitlab-workhorse 1.4.3 Document how ETag caching middleware handles query parameters Make group skip validation in the frontend Use NamespaceValidator::WILDCARD_ROUTES in ETag caching middleware ...
| * | | | Add test for presentersLin Jen-Shin2017-04-061-0/+4
| | | | |
| * | | | replace helper with decoratorRydkin Maxim2017-04-041-0/+1
| | | | |
| * | | | rename `auto_canceled_by` and add foreign keyRydkin Maxim2017-04-041-0/+2
| | | | |
| * | | | move `auto_cancelable_pipelines` method to `create_pipeline_service.rb`Rydkin Maxim2017-04-041-8/+0
| | | | |
| * | | | add auto-cancel for pending pipelines on branch, if they are not HEADRydkin Maxim2017-04-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix changelog MR reference add non-HEAD builds finder and add `created` pipelines to scope add spec for auto-cancel non-HEAD pipelines and refactor create_pipeline_service_spec more refactoring for spec adds option for auto-cancel into CI/CD settings fix spec to new configuration fix rubocop fix schema.rb fix schema.rb replace Gitlab 9.0 with 9.1 in doc change wording on pipeline settings added auto_canceled_by field as identifier of autocancel subject remove unnecessary index replace service with retry_lock replace auto_cancel_pending_pipelines boolean setting with integer (and enum in model) fix schema.rb fix schema.rb remove projekt attribute and clean up spec clean up spec withcouple of shared examples added spec for "It does not cancel current pipeline" scenario add some specs to auto-cancel add spec for another branch pipelines
* | | | | Use Etag caching for pipelines jsonToon Claes2017-04-061-0/+2
| |_|_|/ |/| | | | | | | | | | | | | | | Enable caching in the Etag::Middleware and when a pipeline changes status, expire the cache for the project pipelines path.
* | | | Merge remote-tracking branch 'origin/master' into optimise-pipelinesoptimise-pipelinesKamil Trzcinski2017-04-063-135/+58
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch ↵Kamil Trzciński2017-04-062-0/+31
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '2989-run-cicd-pipelines-on-a-schedule-idea1-basic-backend-implementation' into 'master' Resolve "Run CI/CD pipelines on a schedule" - "Basic backend implementation" See merge request !10133
| | * | | Fix rubocopShinya Maeda2017-04-061-1/+1
| | | | |
| | * | | Improve trigger_schedule.rbShinya Maeda2017-04-061-3/+8
| | | | |
| | * | | Rename cron_time_zone to cron_timezone. Separate add_concurrent_foreign_key.Shinya Maeda2017-04-061-2/+2
| | | | |
| | * | | Remove TriggerSchedulePresenter. This will go in another MR.Shinya Maeda2017-04-061-1/+0
| | | | |
| | * | | Remove triggers_helper. Add trigger_schedule_presenter.Shinya Maeda2017-04-061-0/+1
| | | | |
| | * | | Separate cron_valid? and cron_time_zone_valid?Shinya Maeda2017-04-061-1/+1
| | | | |
| | * | | Move Ci::CronParser to Gitlab::Ci::CronParserShinya Maeda2017-04-061-1/+1
| | | | |
| | * | | Remove less_than_1_hour_from_now comments. Dry up def schedule_next_run!Shinya Maeda2017-04-061-21/+1
| | | | |
| | * | | Add Import/Export Setting for trigger_schedule. Remove ref validation.Shinya Maeda2017-04-061-4/+5
| | | | |
| | * | | Commentout check_cron_frequencyShinya Maeda2017-04-061-12/+14
| | | | |
| | * | | Add validatorShinya Maeda2017-04-061-20/+6
| | | | |
| | * | | Move real_next_run to helperShinya Maeda2017-04-061-13/+0
| | | | |
| | * | | Brush up 2Shinya Maeda2017-04-061-4/+1
| | | | |
| | * | | Brush upShinya Maeda2017-04-061-7/+14
| | | | |