summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-15 12:52:55 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-15 12:52:55 +0000
commit2a2b65c4b97a039c553d829d56a58875cde91754 (patch)
tree022455dec95c3220950d3ae2ce5a5faf530a1fd8 /app/models/ci/runner.rb
parent0e1c67d15cc2042907cd7e2ed2fb40f2b476a33c (diff)
parenta830c49a3fcf684f89ea5068bbca8ccc1b83fc4c (diff)
downloadgitlab-ce-42762-project-settings-sections-cannot-be-expanded-after-submission-error.tar.gz
Merge branch 'backstage/gb/refactor-ci-cd-variables-collections' into 'master'42762-project-settings-sections-cannot-be-expanded-after-submission-error
Introduce CI/CD variables collection Closes #33042 See merge request gitlab-org/gitlab-ce!14439
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r--app/models/ci/runner.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 609620a62bb..7173f88f1c7 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -132,11 +132,10 @@ module Ci
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 }
- ]
+ Gitlab::Ci::Variables::Collection.new
+ .append(key: 'CI_RUNNER_ID', value: id.to_s)
+ .append(key: 'CI_RUNNER_DESCRIPTION', value: description)
+ .append(key: 'CI_RUNNER_TAGS', value: tag_list.to_s)
end
def tick_runner_queue