Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMatija Čupić <matija.cupic.97@gmail.com>2017-11-04 04:42:16 +0300
committerMatija Čupić <matija.cupic.97@gmail.com>2017-11-04 06:46:29 +0300
commit576f0a5a6d3819149590fad00986dee8c719db32 (patch)
tree164f9be368c0643b3134bf3e0d9e89929e4becf1 /spec
parent5d4f377bfd50cb1b2b1980f036b18c7b5d2b137f (diff)
Expose project visibility as CI variable
Diffstat (limited to 'spec')
-rw-r--r--spec/models/ci/build_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 41ecdb604f1..f804b422794 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1271,6 +1271,7 @@ describe Ci::Build do
{ key: 'CI_PROJECT_PATH_SLUG', value: project.full_path_slug, public: true },
{ key: 'CI_PROJECT_NAMESPACE', value: project.namespace.full_path, public: true },
{ key: 'CI_PROJECT_URL', value: project.web_url, public: true },
+ { key: 'CI_PROJECT_VISIBILITY', value: Gitlab::VisibilityLevel.string_level(project.visibility_level), public: true },
{ key: 'CI_PIPELINE_ID', value: pipeline.id.to_s, public: true },
{ key: 'CI_CONFIG_PATH', value: pipeline.ci_yaml_file_path, public: true },
{ key: 'CI_REGISTRY_USER', value: 'gitlab-ci-token', public: true },