summaryrefslogtreecommitdiff
path: root/spec/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Strip whitespace for PipelineSchedule#cronstrip-attr-cron-in-pipeline-scheduleFabio Pitino2019-05-021-0/+9
|
* Fix CI_COMMIT_REF_NAME and SLUG variableShinya Maeda2019-04-293-0/+68
| | | | | | | 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.
* Add deployment events to chat notification servicesJason Goodman2019-04-261-0/+4
| | | | | This enables sending a chat message to Slack or Mattermost upon a successful, failed, or canceled deployment
* Merge branch 'add-ci-variable-protected-ref' into 'master'Grzegorz Bizon2019-04-243-3/+5
|\ | | | | | | | | 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-103-3/+3
| |
| * Added the CI_REF_PROTECTED variable to the Gitlab runnerJason van den Hurk2019-04-103-3/+5
| | | | | | | | | | | | 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-3/+2
| | | | | | | | Model.new.attributes now also returns encrypted attributes.
* | Extract ProjectStatistics updates into a concernAlessio Caiazza2019-04-192-88/+8
| | | | | | | | Refactor existing tests as a shared example
* | Merge branch 'mc/feature/custom-metrics-ce' into 'master'Kamil Trzciński2019-04-162-4/+24
|\ \ | | | | | | | | | | | | Backport metrics report type See merge request gitlab-org/gitlab-ce!26798
| * | Backport changes from EEMatija Čupić2019-04-162-4/+24
| |/ | | | | | | | | 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-7/+8
|/ | | | with expired artifacts
* [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-081-4/+4
| | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* Merge branch 'fix-merge-request-relations-with-pipeline-on-mwps' into 'master'Kamil Trzciński2019-04-051-3/+22
|\ | | | | | | | | Fix MWPS doesn't work for merge request pipelines See merge request gitlab-org/gitlab-ce!26906
| * Fix merge requst relationships with pipeline in MWPSServicefix-merge-request-relations-with-pipeline-on-mwpsShinya Maeda2019-04-051-3/+22
| | | | | | | | | | | | MWPSService currently uses the old pipeline lookup method. It searches related merge requests with pipeline.ref, however, this doesn't work for attached/detached merge request pipelines.
* | Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-052-3/+3
|/ | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Merge branch 'drop-usage-of-leagcy-artifacts' into 'master'Kamil Trzciński2019-04-041-0/+18
|\ | | | | | | | | 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-0/+18
| | | | | | | | | | | | 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-4/+12
|/ | | | | | 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.
* Backport EE changeexpose-mr-pipeline-parameters-for-merge-widget-ceShinya Maeda2019-04-021-42/+0
| | | | This is for merge request pipelines
* Don't use frozen_string_literal for nowfrozen_string_spec_modelsThong Kuah2019-04-011-2/+0
| | | | While we debug why this is failing
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-0124-0/+48
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Merge branch 'persist-fulll-ref-path-for-mr-pipelines' into 'master'Kamil Trzciński2019-03-292-0/+56
|\ | | | | | | | | | | | | Use merge request HEAD ref for detached merge request pipelines Closes #58454 See merge request gitlab-org/gitlab-ce!25504
| * Create detached merge request pipelinespersist-fulll-ref-path-for-mr-pipelinesShinya Maeda2019-03-292-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By using `refs/merge-requests/:iid/head` ok ok Improve naming nicely Add nice tests add nice tests fix some more revert
* | Allow ref name caching CommitService#find_commitStan Hu2019-03-271-0/+8
|/ | | | | | | | | | | | | | | | | | For a given merge request, it's quite common to see duplicate FindCommit Gitaly requests because the Gitaly CommitService caches the request by the commit SHA, not by the ref name. However, most of the duplicate requests use the ref name, so the cache is never actually used in practice. This leads to unnecessary requests that slow performance. This commit allows certain callers to bypass the ref name to OID conversion in the cache. We don't do this by default because it's possible the tip of the branch changes during the commit, which would cause the caller to get stale data. This commit also forces the Ci::Pipeline to use the full ref name so that caching can work for merge requests. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57083
* Update merge request widget pipeline blockNathan Friend2019-03-211-0/+24
| | | | | | This commit updates the pipeline block that appears on the merge request page to include information that will be exposed by the API as part of the post-merge pipeline feature.
* Add feature flag for build preparing stateTiger2019-03-201-0/+30
| | | | | The flag is on by default, but allows us to revert back to the old behaviour if we encounter any problems.
* Create framework for build prerequisitesTiger2019-03-202-1/+62
| | | | | | | | | Introduces the concept of Prerequisites for a CI build. If a build has unmet prerequisites it will go through the :preparing state before being made available to a runner. There are no actual prerequisites yet, so current behaviour is unchanged.
* Add :preparing status to HasStatusTiger2019-03-201-11/+53
| | | | | | | | | | | Introduces a new status for builds between :created and :pending that will be used when builds require one or more prerequisite actions to be completed before being picked up by a runner (such as creating Kubernetes resources before deploying). The existing :created > :pending transition is unchanged, so only builds that require preparation will use the :preparing status.
* Add attached flag to pipeline entityShinya Maeda2019-03-131-2/+2
| | | | | | | | | | | | | | | | | | Add spec Fix Fix Add changelog Drop attached Remove attached Update changelog ok
* Make all_pipelines method compatible with pipelines for merge requestsShinya Maeda2019-03-131-10/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it sane Include merge ref head Fix union Improve a bit Add spec remove add spec Add changelog fix coding offence Apply suggestion to spec/models/merge_request_spec.rb ok ok Fix Fix spec Fix spec fix Simplify the things Memoize OK a
* Resolve "Mask the existing variables"Matija Čupić2019-03-071-4/+4
|
* Merge branch 'fix/gb/fix-bridge-jobs-variables-policy' into 'master'Stan Hu2019-03-051-0/+15
|\ | | | | | | | | | | | | Fix bridge jobs only/except variables policy Closes #58199 See merge request gitlab-org/gitlab-ce!25710
| * Fix CI/CD bridge variables unit testGrzegorz Bizon2019-03-021-14/+8
| |
| * Extract scoped CI/CD variables to a separate concernGrzegorz Bizon2019-03-021-0/+21
| | | | | | | | | | | | | | | | | | This commits extract code responsible for calculating essential CI/CD variables to a separate concern. This makes it possible to share this code between a `Ci::Build` and a `Ci::Bridge`. We might want to refactor this to use composition instead of inheritance.
* | Make sure MR and milestone projects are sameJarka Košanová2019-03-051-1/+1
| |
* | Rename ambiguous association names in Ci::PipelineShinya Maeda2019-03-051-4/+4
| | | | | | | | | | | | | | | | fix it ok Fix head pipeline
* | Merge branch 'master' into expose-additional-merge-request-pipeline-variablesHiroyuki Sato2019-03-041-2/+37
|/ | | | | | Conflicts: doc/ci/variables/README.md spec/models/ci/pipeline_spec.rb
* Add suffix for merge request eventShinya Maeda2019-03-012-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | Fix ok Add spec Fix ok Fix Add changelog Fix Add memoization a fix
* Fix inconsistent `branch?` behaviorShinya Maeda2019-03-011-0/+116
| | | | | | | | | | between Ci::Pipeline and Ci::Build Add spec Add more tests ok
* Merge branch 'fix-misspellings-app' into 'master'Rémy Coutable2019-02-271-2/+2
|\ | | | | | | | | Fix misspellings in app/spec executable lines See merge request gitlab-org/gitlab-ce!25521
| * Fix misspellings in app/spec executable linesTakuya Noguchi2019-02-271-2/+2
| | | | | | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* | Revert "Merge branch 'revert-8baf9e5f' into 'master'"Matija Čupić2019-02-273-88/+90
|/ | | | | This reverts commit f5201a816f2eff9393e16f362403451e5d86ee6c, reversing changes made to 48e6db0dad6f256e8423e0bd6c9b254803f50ccf.
* Persist source sha and target sha for merge pipelinesShinya Maeda2019-02-271-1/+129
| | | | source_sha and target_sha are used for merge request pipelines
* Fix Ci::Pipeline#all_merge_requests missing forked MRsStan Hu2019-02-261-40/+57
| | | | | | | | Ci::Pipeline#all_merge_requests was only returning merge requests for that project, but it should include merge requests from forks as well. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Expose refspec and depth to runnerShinya Maeda2019-02-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix fix and fix Allow full ref specification for pipeline creation Add spec Support backward compatibility Use ref path Runner feature flag Simplify the things Support fork workflow (Public only) Expose ref spec Use refspec Glooming Decouple unrelated changes Add changelog Revert unrelated file Decouple unnecessary Add spec Use refspecs Fix changelog Simplify Fix coding offence Fix a ok ok ok ok ok a a Fix Add workaround for ignore_column Fix git depth Fix coding offence Fix spec Simplify more Do not set ignored column Fix tests Fix pipeline Fix spec fix fixture yes Revert nonsense fix Revert more ok Decouple mr pipelines fix spev Remove unrelated changes
* Move ChatOps to CoreJames Fargher2019-02-201-0/+1
| | | | ChatOps used to be in the Ultimate tier.
* Support `only: changes:` on MR pipelinesHiroyuki Sato2019-02-131-2/+20
|
* Backport: Optimize slow pipelines.js responseShinya Maeda2019-02-051-0/+20
| | | | Add changelog
* Add GitLab Pages predefined variablesAdrian Moisey2019-01-291-0/+2
|