summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-08-31 10:03:07 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-08-31 10:03:07 +0000
commit896e5f50317608b274fb0d731745070808a67b39 (patch)
tree7280ba47d9db046d9ea1c717a75828f45fd6a9ae /app
parentbf51ab887b92275d0e5b51c53889664f8c8db745 (diff)
parent22d5cca8a7afe69000faac6e9011f6662f610123 (diff)
downloadgitlab-ce-896e5f50317608b274fb0d731745070808a67b39.tar.gz
Merge branch '26692-predefined-variable-gitlab-user-name' into 'master'
Resolve "Predefined Variable GITLAB_USER_NAME" Closes #26692 See merge request !13824
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/build.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 095192e9894..8adaafe6439 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -387,7 +387,9 @@ module Ci
[
{ key: 'GITLAB_USER_ID', value: user.id.to_s, public: true },
- { key: 'GITLAB_USER_EMAIL', value: user.email, public: true }
+ { key: 'GITLAB_USER_EMAIL', value: user.email, public: true },
+ { key: 'GITLAB_USER_LOGIN', value: user.username, public: true },
+ { key: 'GITLAB_USER_NAME', value: user.name, public: true }
]
end