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
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-08-25 07:01:55 +0300
committerMark Fletcher <mark@gitlab.com>2017-08-30 06:25:30 +0300
commit22d5cca8a7afe69000faac6e9011f6662f610123 (patch)
tree4c4d20bdc5030da9638d0d710f3d74117f26d2f3 /app/models/ci
parent91cca6e4943dd64d3bfe029e3da275ed1113bf47 (diff)
Add a Build Variable to represent the triggering GitLab user's login username
* Predefined variable represents the username of the GitLab user that started a build
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/build.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index ace86e5e517..b7dcae0f9b3 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -385,6 +385,7 @@ 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_LOGIN', value: user.username, public: true },
{ key: 'GITLAB_USER_NAME', value: user.name, public: true }
]
end