summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2019-05-15 15:32:18 +0200
committerMathieu Parent <math.parent@gmail.com>2019-07-03 16:18:05 +0200
commita7892e71714ad0f425547db12f205771dc270da5 (patch)
treeecdf94f67842dfc7ccccd38b7e23e9e9f5d2833e /lib/api/entities.rb
parent353e68772c8b57ef4a98be094f2674d28a2dedcd (diff)
downloadgitlab-ce-a7892e71714ad0f425547db12f205771dc270da5.tar.gz
Add build_timeout to project API
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 0389ff0e045..3bfaf63d912 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -278,6 +278,7 @@ module API
expose :build_git_strategy, if: lambda { |project, options| options[:user_can_admin_project] } do |project, options|
project.build_allow_git_fetch ? 'fetch' : 'clone'
end
+ expose :build_timeout
expose :ci_config_path, if: -> (project, options) { Ability.allowed?(options[:current_user], :download_code, project) }
expose :shared_with_groups do |project, options|
SharedGroup.represent(project.project_group_links, options)