summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authorvanadium23 <chernoffivan@gmail.com>2017-06-01 08:04:16 +0300
committervanadium23 <chernoffivan@gmail.com>2017-06-03 10:36:41 +0300
commit3f80281d9c07e47cb5cf921add9f5933763ad3df (patch)
treeda1d90238737d497f5583e113ef0418a8ddadee3 /spec/models/ci
parent11852e16387790c26be7b8d1dd99ed689bf9d45b (diff)
downloadgitlab-ce-3f80281d9c07e47cb5cf921add9f5933763ad3df.tar.gz
Add slugify project path to CI enviroment variables
Diffstat (limited to 'spec/models/ci')
-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 e2406290c6c..55bfeb6eb41 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1139,6 +1139,7 @@ describe Ci::Build, :models do
{ key: 'CI_PROJECT_ID', value: project.id.to_s, public: true },
{ key: 'CI_PROJECT_NAME', value: project.path, public: true },
{ key: 'CI_PROJECT_PATH', value: project.full_path, public: true },
+ { key: 'CI_PROJECT_PATH_SLUG', value: project.full_path.parameterize, 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_PIPELINE_ID', value: pipeline.id.to_s, public: true },