Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
683ba258
Commit
683ba258
authored
Aug 18, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc
parent
8ca5c333
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
84 deletions
+11
-84
doc/api/pipeline_schedules.md
doc/api/pipeline_schedules.md
+11
-84
No files found.
doc/api/pipeline_schedules.md
View file @
683ba258
...
@@ -278,6 +278,10 @@ curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "https://gi
...
@@ -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 pipeline schedule variable
Create a new variable of a pipeline schedule.
Create a new variable of a pipeline schedule.
...
@@ -299,35 +303,8 @@ curl --request POST --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form "key=N
...
@@ -299,35 +303,8 @@ curl --request POST --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form "key=N
```
json
```
json
{
{
"id"
:
13
,
"key"
:
"NEW_VARIABLE"
,
"description"
:
"Test schedule pipeline"
,
"value"
:
"new value"
"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"
}
]
}
}
```
```
...
@@ -352,35 +329,8 @@ curl --request PUT --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form "value=
...
@@ -352,35 +329,8 @@ curl --request PUT --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form "value=
```
json
```
json
{
{
"id"
:
13
,
"key"
:
"NEW_VARIABLE"
,
"description"
:
"Test schedule pipeline"
,
"value"
:
"updated value"
"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"
}
]
}
}
```
```
...
@@ -403,30 +353,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "https://gi
...
@@ -403,30 +353,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "https://gi
```
```
```
json
```
json
{
//
Empty
"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"
:
[]
}
```
```
[
ce-34518
]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/34518
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment