Commit graph

28 commits

Author SHA1 Message Date
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
Mayra Cabrera
b3364566c4 Fixes technical debt issues for cluster domain
- Avoid using direct code on spec migration
- Removes milestone and point to issue, to avoid making fake promises

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57397
2019-02-07 11:11:22 -06:00
Mayra Cabrera
087af654bb Addresses backend/db review comments
- Fixes multiple typos on AutoDevops script
- Add an alias to Clusters::Cluster#domain as base_domain, so it's more
descriptive
- Removes unnecessary memoization on qa specs
- Changes migration to a post migration to deal better with traffic on
big instances (like gitlab.com)
2019-02-04 12:08:09 -06:00
Mayra Cabrera
8ff73614a1 Moves domain setting to Cluster setting
Changes domain field to be on the Cluster page show, removing it from
Auto DevOps setting. Also injects the new environment variable
KUBE_INGRESS_BASE_DOMAIN into kubernetes#predefined_variables.

Migration to move the information from ProjectAutoDevops#domain
to Clusters::Cluster#domain. As well as necessary modifications to qa
selectors

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52363
2019-02-04 11:43:34 -06:00
Alessio Caiazza
94fc061936
Add timed incremental rollout to Auto DevOps
Auto DevOps deployment strategies now supports timed incremental
rollout. We are deprecating the usage of INCREMENTAL_ROLLOUT_ENABLED
environment variable in Auto DevOps template.

The new behavior will be driven by the INCREMENTAL_ROLLOUT_MODE variable
that can either be manual (same as INCREMENTAL_ROLLOUT_ENABLED) or
timed.

Rollout deployments will be executed using a 5 minute delay between each
job.
2018-10-05 21:14:59 +02:00
Dylan Griffith
555cdadee6 Resolve "Enable Auto DevOps instance-wide on GitLab.com" 2018-08-16 13:24:25 +00:00
gfyoung
50abbd3e53 Enable frozen string in app/models/*.rb
Partially addresses .
2018-07-26 16:55:41 -07:00
Tomasz Maczukin
156339569d
Enforce setting string as value of the CI/CD variable 2018-06-25 14:48:34 +02:00
Kamil Trzciński
b780efab26 Merge remote-tracking branch 'origin/master' into 38542-application-control-panel-in-settings-page 2018-06-07 20:27:30 +02:00
Mayra Cabrera
5370c442df Resolve "Automatically provide a Deploy Token to projects when Auto DevOps is enabled" 2018-06-07 18:09:14 +00:00
Matija Čupić
2bc1835597
Use 0 continuous default for deploy strategy 2018-06-07 18:11:08 +02:00
Matija Čupić
78ae23045b
Reverse logic of manual and continuous deploy strategies 2018-06-06 19:09:46 +02:00
Matija Čupić
9738b0a42b
Make deploy_strategy zero based 2018-06-06 18:58:26 +02:00
Matija Čupić
39412d0a16
Add deploy strategy related predefined variables 2018-06-01 23:58:39 +02:00
Matija Čupić
5e9687a198
Add deploy_strategy to ProjectAutoDevops 2018-06-01 23:39:24 +02:00
Grzegorz Bizon
769f87eebd Fix rubocop offense in auto devops predefined variables 2018-03-13 15:26:16 +01:00
Grzegorz Bizon
0cf0a7a898 DRY project-level predefined variables 2018-03-13 14:00:14 +01:00
Matija Čupić
5291c0bb51
Use domain.presence instead of domain to avoid empty strings 2018-02-06 15:30:55 +01:00
Matija Čupić
56bcb3e8c8
Use Gitlab::CurrentSettings instead of current_application_settings 2018-02-03 12:20:59 +01:00
Matija Čupić
e6487168ea
Read the AutoDevOps instance domain in ProjectAutoDevOps 2018-02-01 23:59:14 +01:00
bokebilly
3017697701 Add warning message if domain or cluster are not configured 2017-09-19 15:32:31 +02:00
Zeger-Jan van de Weg
74bf291c78
Add auto devops enabled/disabled to usage ping 2017-09-12 12:33:48 +02:00
Kamil Trzcinski
632f6ba267 Add tests to cover all introduced changes 2017-09-06 21:00:34 +02:00
Kamil Trzcinski
82ed2a0909 Improve config source handling code 2017-09-06 18:57:07 +02:00
Zeger-Jan van de Weg
c288ca78b4
Use hook for setting Pipeline config_source 2017-09-06 15:14:21 +02:00
Zeger-Jan van de Weg
003bfac293
Incorporate another round of feedback 2017-09-06 09:26:47 +02:00
Zeger-Jan van de Weg
bcd70c4c46
Incorporate review 2017-09-04 15:44:46 +02:00
Zeger-Jan van de Weg
6ed490401f
Implement the implied CI/CD config for AutoDevOps
Behind an application setting, which defaults to false, this commit
implements the implied CI/CD config. Which means that in the case we
can't find the `.gitlab-ci.yml` on the commit we want to start a
pipeline for, we fall back to an implied configuration.

For now the Bash template has been copied to
`Auto-Devops.gitlab-ci.yml` so the tests actually work.

Fixes 
2017-08-31 22:25:25 +02:00