diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-21 14:01:05 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-21 14:01:05 +0100 |
commit | 8f86d931498bc01b95205ef70bc86eb9c81bbf57 (patch) | |
tree | 8bd27dce1f588fd4b67cd504916bf5b212218e43 /app/models/ci/runner.rb | |
parent | 11ffdea7cebc7c4f896adbc5c2a5d31d25711395 (diff) | |
parent | 4e40ba93dcfc339ab4baa47ef39e1a570e4fc902 (diff) | |
download | gitlab-ce-8f86d931498bc01b95205ef70bc86eb9c81bbf57.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r-- | app/models/ci/runner.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index b64ec79ec2b..49f05f881a2 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -114,6 +114,14 @@ module Ci tag_list.any? end + def predefined_variables + [ + { key: 'CI_RUNNER_ID', value: id.to_s, public: true }, + { key: 'CI_RUNNER_DESCRIPTION', value: description, public: true }, + { key: 'CI_RUNNER_TAGS', value: tag_list.to_s, public: true } + ] + end + private def tag_constraints |