summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-06-05 10:25:35 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-06-05 10:25:35 +0000
commit65581fad5e26fdf2612c098a7fbc48a53aae5e28 (patch)
treefaf29a3cfa9562b33321d8adfbe72d16abfc4978 /spec
parent9ccb289aa10f26e418dec06c5d6cf70205560ff4 (diff)
parent3f80281d9c07e47cb5cf921add9f5933763ad3df (diff)
downloadgitlab-ce-65581fad5e26fdf2612c098a7fbc48a53aae5e28.tar.gz
Merge branch '31061-26135-ci-project-slug-enviroment-variables' into 'master'
Add slugified project path to CI environment variables Closes #31061 See merge request !11838
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 22ee469dd86..b0716e04d3d 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1179,6 +1179,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 },