diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-06-05 13:25:35 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-06-05 13:25:35 +0300 |
commit | 65581fad5e26fdf2612c098a7fbc48a53aae5e28 (patch) | |
tree | faf29a3cfa9562b33321d8adfbe72d16abfc4978 /app/models | |
parent | 9ccb289aa10f26e418dec06c5d6cf70205560ff4 (diff) | |
parent | 3f80281d9c07e47cb5cf921add9f5933763ad3df (diff) |
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 'app/models')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index f16d1cab6c4..d21ff274b6e 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1228,6 +1228,7 @@ class Project < ActiveRecord::Base { key: 'CI_PROJECT_ID', value: id.to_s, public: true }, { key: 'CI_PROJECT_NAME', value: path, public: true }, { key: 'CI_PROJECT_PATH', value: path_with_namespace, public: true }, + { key: 'CI_PROJECT_PATH_SLUG', value: path_with_namespace.parameterize, public: true }, { key: 'CI_PROJECT_NAMESPACE', value: namespace.full_path, public: true }, { key: 'CI_PROJECT_URL', value: web_url, public: true } ] |