summaryrefslogtreecommitdiff
path: root/lib/api/helpers
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/helpers
parent353e68772c8b57ef4a98be094f2674d28a2dedcd (diff)
downloadgitlab-ce-a7892e71714ad0f425547db12f205771dc270da5.tar.gz
Add build_timeout to project API
Diffstat (limited to 'lib/api/helpers')
-rw-r--r--lib/api/helpers/projects_helpers.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/helpers/projects_helpers.rb b/lib/api/helpers/projects_helpers.rb
index bc847968c25..7a806839856 100644
--- a/lib/api/helpers/projects_helpers.rb
+++ b/lib/api/helpers/projects_helpers.rb
@@ -9,6 +9,7 @@ module API
params :optional_project_params_ce do
optional :description, type: String, desc: 'The description of the project'
optional :build_git_strategy, type: String, values: %w(fetch clone), desc: 'The Git strategy. Defaults to `fetch`'
+ optional :build_timeout, type: Integer, desc: 'Build timeout'
optional :ci_config_path, type: String, desc: 'The path to CI config file. Defaults to `.gitlab-ci.yml`'
# TODO: remove in API v5, replaced by *_access_level
@@ -60,6 +61,7 @@ module API
def self.update_params_at_least_one_of
[
:build_git_strategy,
+ :build_timeout,
:builds_access_level,
:ci_config_path,
:container_registry_enabled,