diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-13 15:26:16 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-13 15:26:16 +0100 |
commit | 769f87eebd6a3701770f46dee1e2b09c60306f34 (patch) | |
tree | 9baed03449d79c4bc219f0c3270ea87b2c6d72e7 /app | |
parent | d4319e1700b2eb4070a9cdac71b6f5b78ede08ff (diff) | |
download | gitlab-ce-769f87eebd6a3701770f46dee1e2b09c60306f34.tar.gz |
Fix rubocop offense in auto devops predefined variables
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_auto_devops.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/project_auto_devops.rb b/app/models/project_auto_devops.rb index 519bd2fe2ac..ed6c1eddbc1 100644 --- a/app/models/project_auto_devops.rb +++ b/app/models/project_auto_devops.rb @@ -16,9 +16,10 @@ class ProjectAutoDevops < ActiveRecord::Base def predefined_variables Gitlab::Ci::Variables::Collection.new.tap do |variables| - variables.append(key: 'AUTO_DEVOPS_DOMAIN', - value: domain.presence || instance_domain, - public: true) if has_domain? + if has_domain? + variables.append(key: 'AUTO_DEVOPS_DOMAIN', + value: domain.presence || instance_domain) + end end end end |