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
path: root/doc
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-18 11:46:14 +0300
committerShinya Maeda <shinya@gitlab.com>2017-09-04 15:10:34 +0300
commit683ba258cb95d5596b545d94420a9b6262f5d45b (patch)
tree5e3d16fd3b3547a62c4477f5e633b61db163885a /doc
parent8ca5c333fd5170a900c7fa28b6bfcbe1a8bc6477 (diff)
Fix doc
Diffstat (limited to 'doc')
-rw-r--r--doc/api/pipeline_schedules.md95
1 files changed, 11 insertions, 84 deletions
diff --git a/doc/api/pipeline_schedules.md b/doc/api/pipeline_schedules.md
index d2169b0377d..bfa6fb731eb 100644
--- a/doc/api/pipeline_schedules.md
+++ b/doc/api/pipeline_schedules.md
@@ -278,6 +278,10 @@ curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "https://gi
}
```
+## Pipeline schedule variable
+
+> [Introduced][ce-34518] in GitLab 10.0.
+
## Create a new pipeline schedule variable
Create a new variable of a pipeline schedule.
@@ -299,35 +303,8 @@ curl --request POST --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form "key=N
```json
{
- "id": 13,
- "description": "Test schedule pipeline",
- "ref": "master",
- "cron": "* * * * *",
- "cron_timezone": "Asia/Tokyo",
- "next_run_at": "2017-05-19T13:41:00.000Z",
- "active": true,
- "created_at": "2017-05-19T13:31:08.849Z",
- "updated_at": "2017-05-19T13:40:17.727Z",
- "last_pipeline": {
- "id": 332,
- "sha": "0e788619d0b5ec17388dffb973ecd505946156db",
- "ref": "master",
- "status": "pending"
- },
- "owner": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
- "web_url": "https://gitlab.example.com/root"
- },
- "variables": [
- {
- "key": "NEW_VARIABLE",
- "value": "new value"
- }
- ]
+ "key": "NEW_VARIABLE",
+ "value": "new value"
}
```
@@ -352,35 +329,8 @@ curl --request PUT --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form "value=
```json
{
- "id": 13,
- "description": "Test schedule pipeline",
- "ref": "master",
- "cron": "* * * * *",
- "cron_timezone": "Asia/Tokyo",
- "next_run_at": "2017-05-19T13:41:00.000Z",
- "active": true,
- "created_at": "2017-05-19T13:31:08.849Z",
- "updated_at": "2017-05-19T13:40:17.727Z",
- "last_pipeline": {
- "id": 332,
- "sha": "0e788619d0b5ec17388dffb973ecd505946156db",
- "ref": "master",
- "status": "pending"
- },
- "owner": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
- "web_url": "https://gitlab.example.com/root"
- },
- "variables": [
- {
- "key": "NEW_VARIABLE",
- "value": "updated value"
- }
- ]
+ "key": "NEW_VARIABLE",
+ "value": "updated value"
}
```
@@ -403,30 +353,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "https://gi
```
```json
-{
- "id": 13,
- "description": "Test schedule pipeline",
- "ref": "master",
- "cron": "* * * * *",
- "cron_timezone": "Asia/Tokyo",
- "next_run_at": "2017-05-19T13:41:00.000Z",
- "active": true,
- "created_at": "2017-05-19T13:31:08.849Z",
- "updated_at": "2017-05-19T13:40:17.727Z",
- "last_pipeline": {
- "id": 332,
- "sha": "0e788619d0b5ec17388dffb973ecd505946156db",
- "ref": "master",
- "status": "pending"
- },
- "owner": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
- "web_url": "https://gitlab.example.com/root"
- },
- "variables": []
-}
+// Empty
```
+
+[ce-34518]: https://gitlab.com/gitlab-org/gitlab-ce/issues/34518 \ No newline at end of file