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 /doc/api | |
parent | 709e8b263863c5a92959700b67462c2ebe4f1831 (diff) | |
download | gitlab-ce-9b2e19fe37a5d1389e9f83531bb6ba4b06a66de0.tar.gz |
Adds variables to POST api/v4/projects/:id/pipeline
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/pipelines.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/pipelines.md b/doc/api/pipelines.md index 899f5da6647..bc96b3a0bdf 100644 --- a/doc/api/pipelines.md +++ b/doc/api/pipelines.md @@ -102,6 +102,7 @@ POST /projects/:id/pipeline |------------|---------|----------|---------------------| | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | | `ref` | string | yes | Reference to commit | +| `variables_attributes` | array | no | An array containing the variables available in the pipeline matching the structure [{ 'key' => 'UPLOAD_TO_S3', 'value' => 'true' }] | ``` curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/pipeline?ref=master" @@ -132,7 +133,8 @@ Example of response "finished_at": null, "committed_at": null, "duration": null, - "coverage": null + "coverage": null, + "variables": [] } ``` |