Expose GITLAB_FEATURES as CI/CD variable (fixes #40994)
This commit is contained in:
parent
4457cf9d17
commit
ffb1fab403
|
@ -543,6 +543,7 @@ module Ci
|
|||
variables = [
|
||||
{ key: 'CI', value: 'true', public: true },
|
||||
{ key: 'GITLAB_CI', value: 'true', public: true },
|
||||
{ key: 'GITLAB_FEATURES', value: project.namespace.features.join(','), public: true },
|
||||
{ key: 'CI_SERVER_NAME', value: 'GitLab', public: true },
|
||||
{ key: 'CI_SERVER_VERSION', value: Gitlab::VERSION, public: true },
|
||||
{ key: 'CI_SERVER_REVISION', value: Gitlab::REVISION, public: true },
|
||||
|
|
|
@ -243,6 +243,10 @@ class Namespace < ActiveRecord::Base
|
|||
all_projects.with_storage_feature(:repository).find_each(&:remove_exports)
|
||||
end
|
||||
|
||||
def features
|
||||
[]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def path_or_parent_changed?
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: 'Expose GITLAB_FEATURES as CI/CD variable (fixes #40994)'
|
||||
merge_request:
|
||||
author:
|
||||
type: added
|
|
@ -1413,6 +1413,7 @@ describe Ci::Build do
|
|||
[
|
||||
{ key: 'CI', value: 'true', public: true },
|
||||
{ key: 'GITLAB_CI', value: 'true', public: true },
|
||||
{ key: 'GITLAB_FEATURES', value: '', public: true },
|
||||
{ key: 'CI_SERVER_NAME', value: 'GitLab', public: true },
|
||||
{ key: 'CI_SERVER_VERSION', value: Gitlab::VERSION, public: true },
|
||||
{ key: 'CI_SERVER_REVISION', value: Gitlab::REVISION, public: true },
|
||||
|
|
Loading…
Reference in New Issue