diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-08-25 11:01:55 +0700 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-08-30 11:25:30 +0800 |
commit | 22d5cca8a7afe69000faac6e9011f6662f610123 (patch) | |
tree | 4c4d20bdc5030da9638d0d710f3d74117f26d2f3 /app/models/ci/build.rb | |
parent | 91cca6e4943dd64d3bfe029e3da275ed1113bf47 (diff) | |
download | gitlab-ce-22d5cca8a7afe69000faac6e9011f6662f610123.tar.gz |
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/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 1 |
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 |