diff options
author | Matija Čupić <matija.cupic.97@gmail.com> | 2017-11-04 02:42:16 +0100 |
---|---|---|
committer | Matija Čupić <matija.cupic.97@gmail.com> | 2017-11-04 04:46:29 +0100 |
commit | 576f0a5a6d3819149590fad00986dee8c719db32 (patch) | |
tree | 164f9be368c0643b3134bf3e0d9e89929e4becf1 /app | |
parent | 5d4f377bfd50cb1b2b1980f036b18c7b5d2b137f (diff) | |
download | gitlab-ce-576f0a5a6d3819149590fad00986dee8c719db32.tar.gz |
Expose project visibility as CI variable
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 2f9b80d0514..b04aec550b1 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1492,7 +1492,8 @@ class Project < ActiveRecord::Base { key: 'CI_PROJECT_PATH', value: full_path, public: true }, { key: 'CI_PROJECT_PATH_SLUG', value: full_path_slug, public: true }, { key: 'CI_PROJECT_NAMESPACE', value: namespace.full_path, public: true }, - { key: 'CI_PROJECT_URL', value: web_url, public: true } + { key: 'CI_PROJECT_URL', value: web_url, public: true }, + { key: 'CI_PROJECT_VISIBILITY', value: Gitlab::VisibilityLevel.string_level(visibility_level), public: true } ] end |