summaryrefslogtreecommitdiff
path: root/lib/api/pipelines.rb
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-05-24 08:55:47 +0200
committerJacopo <beschi.jacopo@gmail.com>2018-06-01 14:23:45 +0200
commit9b2e19fe37a5d1389e9f83531bb6ba4b06a66de0 (patch)
tree8a56fa1ff3b4aa11801a0eda679388ab1ee94fa9 /lib/api/pipelines.rb
parent709e8b263863c5a92959700b67462c2ebe4f1831 (diff)
downloadgitlab-ce-9b2e19fe37a5d1389e9f83531bb6ba4b06a66de0.tar.gz
Adds variables to POST api/v4/projects/:id/pipeline
Diffstat (limited to 'lib/api/pipelines.rb')
-rw-r--r--lib/api/pipelines.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb
index 735591fedd5..85e073ce662 100644
--- a/lib/api/pipelines.rb
+++ b/lib/api/pipelines.rb
@@ -41,6 +41,7 @@ module API
end
params do
requires :ref, type: String, desc: 'Reference'
+ optional :variables_attributes, Array, desc: 'Array of variables available in the pipeline'
end
post ':id/pipeline' do
Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42124')