summaryrefslogtreecommitdiff
path: root/app/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Add Job specific variablesMatija Čupić2019-07-292-2/+19
| | | | | Adds Job specific variables to facilitate specifying variables when running manual jobs.
* Merge branch 'mc/feature/find-all-artifacts-for-sha' into 'master'Robert Speicher2019-07-261-2/+8
|\ | | | | | | | | | | | | Find build by sha from ref Closes #64534 and #45697 See merge request gitlab-org/gitlab-ce!30843
| * Rename latest_successful to be more explicitMatija Čupić2019-07-261-1/+2
| | | | | | | | | | | | | | * Reword Project#latest_successful_build_for to Project#latest_successful_build_for_ref * Reword Ci::Pipeline#latest_successful_for to Ci::Pipeline#latest_successful_build_for_ref
| * Find build by sha from refMatija Čupić2019-07-231-1/+6
| | | | | | | | Adds ability to find builds by sha when only specifying a ref.
* | Remove dead MySQL codeNick Thomas2019-07-231-2/+0
|/ | | | None of this code can be reached any more, so it can all be removed
* Merge branch 'safe-archiving-for-traces' into 'master'Kamil Trzciński2019-07-232-0/+12
|\ | | | | | | | | Extra logging for new live trace architecture See merge request gitlab-org/gitlab-ce!30892
| * Validate the existence of archived traces before removing live tracesafe-archiving-for-tracesShinya Maeda2019-07-232-0/+12
| | | | | | | | | | Often live traces are removed even though the archived trace doesn't exist. This commit checkes the existence strictly.
* | Use persistent Redis cluster for Workhorse pub/sub notificationssh-use-shared-state-cluster-pubsubStan Hu2019-07-221-1/+1
|/ | | | | | | | | Previously, in Omnibus, Workhorse expected to listen via the Redis shared state cluster for the `workhorse:notifications` publish/subscribe channel, but the Rails code was using the Sidekiq queue cluster for this. To fix this inconsistency, we make the Rails code use the persistent cluster, since we don't want Workhorse to be looking at anything Sidekiq-related.
* Merge branch 'dz-remove-old-ignore-column' into 'master'Robert Speicher2019-07-162-6/+0
|\ | | | | | | | | Remove old ignore_column in AR models See merge request gitlab-org/gitlab-ce!30725
| * Remove old ignore_column in AR modelsdz-remove-old-ignore-columnDmitriy Zaporozhets2019-07-152-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | Next models are affected: * Project * Namespace * Issue * Merge request * CI Trigger * CI Pipeline schedule Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Allow use of legacy triggers with feature flagFabio Pitino2019-07-151-1/+7
|/ | | | | | | | | Keep feature flag disabled by default and turn off all functionality related to legacy triggers. * Block legacy triggers from creating pipeline * Highlight legacy triggers to be invalid via the UI * Make legacy triggers invalid in the model
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-122-2/+2
| | | | Updates changed method names and fixes spec failures
* Add a rubocop for Rails.loggerMayra Cabrera2019-07-101-1/+1
| | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* Refactor pipeline errors_messagerefactor-pipeline-errors_message-ceShinya Maeda2019-07-041-0/+4
| | | | Use the shared method in Ci::Pipeline
* Added commit type to tree GraphQL typePhil Hughes2019-06-281-0/+5
|
* Fix pipeline schedule edge casefix-pipeline-schedule-edge-caseShinya Maeda2019-06-241-6/+17
| | | | | | | | | If pipeline schedule is to run at the exact same time with when cron worker runs, the pipeline schedule will not be executed at the ideal timing. We fix this bug by comparing the exact matching of ideal and cron worker's next run at.
* Use Time.zone.now for Ci::PipelineSchedule#ideal_next_run_atLin Jen-Shin2019-06-111-1/+2
|
* Revert "Merge branch..."revert-86900f00Kamil Trzciński2019-06-051-1/+1
| | | This reverts merge request !27503
* Merge branch 'introduce-auto-merge-process-worker' into 'master'Thong Kuah2019-06-041-0/+10
|\ | | | | | | | | Introduce sidekiq worker for auto merge process See merge request gitlab-org/gitlab-ce!28780
| * Introduce sidekiq worker for auto merge processintroduce-auto-merge-process-workerShinya Maeda2019-06-041-0/+10
| | | | | | | | | | As we have a central domain for auto merge process today, we should use a single worker for any auto merge process.
* | Merge branch ↵Kamil Trzciński2019-06-041-8/+17
|\ \ | |/ |/| | | | | | | | | | | | | 'set-real-next-run-at-for-preventing-duplciate-pipeline-creations' into 'master' Make pipeline schedule worker resilient Closes gitlab-com/gl-infra/production#805 and #61955 See merge request gitlab-org/gitlab-ce!28407
| * Make pipeline schedule worker resilientset-real-next-run-at-for-preventing-duplciate-pipeline-creationsShinya Maeda2019-06-031-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, pipeline schedule worker is unstable because it's sometimes killed by excessive memory consumption. In order to improve the performance, we add the following fixes: 1. next_run_at is always real_next_run, which means the value always takes into account of worker's cron schedule 1. Remove exlusive lock. This is already covered by real_next_run change. 1. Use RunPipelineScheduleWorker for avoiding memory killer. Memory consumption is spread to the multiple sidekiq worker.
* | Cleans up UpdateProjectStatistics concernMayra Cabrera2019-06-032-2/+1
|/ | | | | | | - Renames attributes from stat to project_statistiscs_name and attribute to statistic_attribute - Reordes methods on UpdateProjectStatistics concern - Removes unused module from Ci::Build
* Remove legacy artifact related coderemove-legacy-artifacts-related-codeShinya Maeda2019-05-311-35/+29
| | | | | | We've already migrated all the legacy artifacts to the new realm, which is ci_job_artifacts table. It's time to remove the old code base that is no longer used.
* Extract Ci::Build#report_artifacts into methodmc/feature/reports-downloadMatija Čupić2019-05-281-0/+4
| | | | | Extracts combining the job_artifacts relation with the with_reports scope for getting report artifacts into a method.
* Rename with_all_reports to with_reportsMatija Čupić2019-05-281-4/+9
|
* Add all reports scope to Ci::JobArtifactMatija Čupić2019-05-281-0/+4
|
* Added filtering jobs by age to jobs/request API endpointDmitry Chepurovskiy2019-05-201-0/+2
|
* Stop configuring group clusters on creation60379-remove-ci-preparing-state-feature-flagTiger2019-05-161-2/+0
| | | | | | | | | | | Immediate configuration is not ideal for group and instance level clusters as projects that may never be deployed would still have Kubernetes namespaces and service accounts created for them. As of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25586 we now create only the resources that are required for the project being deployed, at the time of deployment.
* Rename methods that conflict in Rails 5.255583-rename-method-conflictsHeinrich Lee Yu2019-05-121-1/+1
| | | | | Adds suffix to enum methods and changes `in_groups` to `of_groups`
* Merge branch 'strip-attr-cron-in-pipeline-schedule' into 'master'Grzegorz Bizon2019-05-071-0/+3
|\ | | | | | | | | Strip whitespace for PipelineSchedule#cron See merge request gitlab-org/gitlab-ce!27990
| * Strip whitespace for PipelineSchedule#cronstrip-attr-cron-in-pipeline-scheduleFabio Pitino2019-05-021-0/+3
| |
* | Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-023-0/+12
| | | | | | | | | | | | | | | | | | | | - Adds an endpoint on PipelinesController - Adds a service that iterates over every build in a stage and plays it. - Includes 'play_manual' details on EntitySerializer - Builds a new Stage state: PlayManual. An stage can take this status if it has manual builds or an skipped, scheduled or manual status - Includes FE modifications and specs
* | Merge branch ↵Douwe Maan2019-05-021-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | '53064-bypassing-pipeline-jobs-by-canceling-the-pipeline-and-manually-running-later-jobs' into 'master' Disable retrying cancelled jobs Closes #53064 See merge request gitlab-org/gitlab-ce!27503
| * Make canceled jobs not retryablemfluharty2019-04-181-1/+1
| | | | | | | | See which tests break
* | Fix CI_COMMIT_REF_NAME and SLUG variableShinya Maeda2019-04-293-4/+14
| | | | | | | | | | | | | | With Pipelines for Merge Requests feature, users cannout keep using $CI_COMMIT_REF_NAME and _SLUG predefined variables for dynamic environments. We fix this problem by explicitly looking at the source ref.
* | Merge branch 'add-ci-variable-protected-ref' into 'master'Grzegorz Bizon2019-04-241-0/+1
|\ \ | | | | | | | | | | | | Add CI variable CI_REF_PROTECTED See merge request gitlab-org/gitlab-ce!26716
| * | Make sure that CI_COMMIT_REF_PROTECTED is a boolJason van den Hurk2019-04-181-1/+1
| | |
| * | Change CI_REF_PROTECTED variable to CI_COMMIT_REF_PROTECTEDJason van den Hurk2019-04-101-1/+1
| | |
| * | Added the CI_REF_PROTECTED variable to the Gitlab runnerJason van den Hurk2019-04-101-0/+1
| | | | | | | | | | | | | | | | | | This variable shows if the branch the runner is executing is protected or not. References: #50909
* | | Upgrade Rails to 5.1.6.1Jasper Maes2019-04-231-1/+1
| | | | | | | | | | | | Model.new.attributes now also returns encrypted attributes.
* | | Extract ProjectStatistics updates into a concernAlessio Caiazza2019-04-192-32/+5
| |/ |/| | | | | Refactor existing tests as a shared example
* | Merge branch 'mc/feature/custom-metrics-ce' into 'master'Kamil Trzciński2019-04-163-7/+14
|\ \ | | | | | | | | | | | | Backport metrics report type See merge request gitlab-org/gitlab-ce!26798
| * | Backport changes from EEMatija Čupić2019-04-163-7/+14
| |/ | | | | | | | | This backports the changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10452
* | Don't render artifact download links on the project tags page for builds ↵drew cimino2019-04-121-1/+1
| | | | | | | | with expired artifacts
* | Align UrlValidator to validate_url gem implementation.Thong Kuah2019-04-111-1/+1
|/ | | | | | | Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement. Make use of the options attribute of the parent class ActiveModel::EachValidator. Add more options: allow_nil, allow_blank, message. Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
* Add new permission model `read-pipeline-variable`Agustin Henze2019-04-091-0/+4
| | | | | | | Used to get the variables via the API endpoint `/projects/:id/pipelines/:pipeline_id/variables` Signed-off-by: Agustin Henze <tin@redhat.com>
* Merge branch 'drop-usage-of-leagcy-artifacts' into 'master'Kamil Trzciński2019-04-041-3/+10
|\ | | | | | | | | Drop legacy artifacts usage as there are no leftovers See merge request gitlab-org/gitlab-ce!24294
| * Drop legacy artifacts usagedrop-usage-of-leagcy-artifactsShinya Maeda2019-04-041-3/+10
| | | | | | | | | | | | Legacy artifacts have been correctly migrated to new place - ci_job_artifacts. Now it's time to remove the related code, but before that we should ensure it doesn't break anything by using feature flag.
* | Renamed terminal_specification to channel_specificationFrancisco Javier López2019-04-041-3/+15
|/ | | | | | We're moving from using terminology related to terminals when we refer to Websockets connections in Workhorse. It's more appropiate a concept like channel.