summaryrefslogtreecommitdiff
path: root/app/helpers/ci/pipelines_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/ci/pipelines_helper.rb')
-rw-r--r--app/helpers/ci/pipelines_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/ci/pipelines_helper.rb b/app/helpers/ci/pipelines_helper.rb
index 8d2f83409be..70d2a4fafd1 100644
--- a/app/helpers/ci/pipelines_helper.rb
+++ b/app/helpers/ci/pipelines_helper.rb
@@ -106,6 +106,12 @@ module Ci
e.candidate { data[:any_runners_available] = project.active_runners.exists?.to_s }
end
+ experiment(:ios_specific_templates, actor: current_user, project: project, sticky_to: project) do |e|
+ e.candidate do
+ data[:registration_token] = project.runners_token if can?(current_user, :register_project_runners, project)
+ end
+ end
+
data
end