Commit Graph

17 Commits

Author SHA1 Message Date
GitLab Bot 33f96e8df0 Add latest changes from gitlab-org/gitlab@master 2021-09-15 09:09:47 +00:00
GitLab Bot c6b5500fab Add latest changes from gitlab-org/gitlab@master 2021-08-31 00:10:56 +00:00
GitLab Bot 9b124bc39e Add latest changes from gitlab-org/gitlab@master 2021-08-25 00:11:06 +00:00
GitLab Bot d8bc65941a Add latest changes from gitlab-org/gitlab@master 2021-07-16 12:10:21 +00:00
GitLab Bot 1581767ea1 Add latest changes from gitlab-org/gitlab@master 2021-07-15 15:09:41 +00:00
GitLab Bot 12de063de4 Add latest changes from gitlab-org/gitlab@master 2021-07-12 09:09:40 +00:00
GitLab Bot 0e0ec3ddd5 Add latest changes from gitlab-org/gitlab@master 2021-06-14 09:10:15 +00:00
GitLab Bot e7462f7b49 Add latest changes from gitlab-org/gitlab@master 2021-02-09 09:09:19 +00:00
GitLab Bot c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot 86e1f47cd1 Add latest changes from gitlab-org/gitlab@master 2020-06-05 15:08:23 +00:00
GitLab Bot 5ba0ad3da6 Add latest changes from gitlab-org/gitlab@master 2020-05-04 09:09:36 +00:00
GitLab Bot 53ae6b7e3f Add latest changes from gitlab-org/gitlab@master 2020-02-17 09:08:52 +00:00
Fabio Pitino 3df74a4036 Move project default git depth behind feature flags 2019-06-10 17:40:19 +00:00
Krasimir Angelov 280ac894d2 Reformat ProjectCiCdSetting validations specs 2019-06-06 23:22:50 +12:00
Krasimir Angelov 52673a916d Forks get default_git_depth 0 if the origin is nil
If the origin project has no default_git_depth set (i.e. nil) set the
fork's default_git_depth to 0
2019-06-06 23:22:50 +12:00
Krasimir Angelov ad9ae16d8a Add project level git depth setting
Introduce default_git_depth in project's CI/CD settings and set it to
50. Use it if there is no GIT_DEPTH variable specified. Apply this
default only to newly created projects and keep it nil for old ones
in order to not break pipelines that rely on non-shallow clones.

default_git_depth can be updated from CI/CD Settings in the UI, must be
either nil or integer between 0 and 1000 (incl).

Inherit default_git_depth from the origin project when forking projects.

MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it
contains unique commit (i.e. merge commit) which doesn't exist in the
other branch/tags refs. We need to add it cause otherwise it may break
pipelines for old projects that have already enabled Pipelines for merge
results and have git depth 0.

Document new default_git_depth project CI/CD setting
2019-06-06 09:21:18 +01:00
Yorick Peterse 392c411bdc
Introduce new ProjectCiCdSetting
This model and the corresponding table will be used for storing settings
specific to CI/CD, starting with the "group_runners_enabled" boolean.

The model is called ProjectCiCdSetting and not ProjectCiCdSettings. The
project exporter doesn't like plural model names as it uses "classify"
which turns those into singular (so "ProjectCiCdSettings" becomes
"ProjectCiCdSetting", producing an error if said class is undefined).

The initial work in this commit was done by Dylan Griffith, with most of
the migration work being done by Yorick Peterse.
2018-04-16 14:05:35 +02:00