diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-05-24 08:55:47 +0200 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-06-01 14:23:45 +0200 |
commit | 9b2e19fe37a5d1389e9f83531bb6ba4b06a66de0 (patch) | |
tree | 8a56fa1ff3b4aa11801a0eda679388ab1ee94fa9 /lib/api | |
parent | 709e8b263863c5a92959700b67462c2ebe4f1831 (diff) | |
download | gitlab-ce-9b2e19fe37a5d1389e9f83531bb6ba4b06a66de0.tar.gz |
Adds variables to POST api/v4/projects/:id/pipeline
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 1 | ||||
-rw-r--r-- | lib/api/pipelines.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index c4537036a3a..8773e2c029a 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -1067,6 +1067,7 @@ module API expose :created_at, :updated_at, :started_at, :finished_at, :committed_at expose :duration expose :coverage + expose :variables, using: Entities::Variable end class PipelineSchedule < Grape::Entity 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') |