Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-05-24 09:55:47 +0300
committerJacopo <beschi.jacopo@gmail.com>2018-06-01 15:23:45 +0300
commit9b2e19fe37a5d1389e9f83531bb6ba4b06a66de0 (patch)
tree8a56fa1ff3b4aa11801a0eda679388ab1ee94fa9 /doc/api/pipelines.md
parent709e8b263863c5a92959700b67462c2ebe4f1831 (diff)
Adds variables to POST api/v4/projects/:id/pipeline
Diffstat (limited to 'doc/api/pipelines.md')
-rw-r--r--doc/api/pipelines.md4
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": []
}
```