From 22d5cca8a7afe69000faac6e9011f6662f610123 Mon Sep 17 00:00:00 2001 From: Mark Fletcher Date: Fri, 25 Aug 2017 11:01:55 +0700 Subject: 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 --- app/models/ci/build.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/ci') 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 -- cgit v1.2.3