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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
0b2fd147
Commit
0b2fd147
authored
May 19, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc with latest entity
parent
bfa028e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
48 deletions
+67
-48
doc/api/pipeline_schedules.md
doc/api/pipeline_schedules.md
+67
-48
No files found.
doc/api/pipeline_schedules.md
View file @
0b2fd147
...
...
@@ -15,22 +15,21 @@ GET /projects/:id/pipeline_schedules
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
```
curl --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "http://192.168.10.5:3000/api/v4/projects/2
8
/pipeline_schedules"
curl --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "http://192.168.10.5:3000/api/v4/projects/2
9
/pipeline_schedules"
```
```
json
[
{
"id"
:
1
1
,
"description"
:
"
Acceptance Test
"
,
"id"
:
1
3
,
"description"
:
"
Test schedule pipeline
"
,
"ref"
:
"master"
,
"cron"
:
"
0 4
* * *"
,
"cron_timezone"
:
"A
merica/Los_Angeles
"
,
"next_run_at"
:
"2017-05-1
3T11:00
:00.000Z"
,
"cron"
:
"
* *
* * *"
,
"cron_timezone"
:
"A
sia/Tokyo
"
,
"next_run_at"
:
"2017-05-1
9T13:41
:00.000Z"
,
"active"
:
true
,
"created_at"
:
"2017-05-12T13:10:34.497Z"
,
"updated_at"
:
"2017-05-12T13:10:34.497Z"
,
"deleted_at"
:
null
,
"created_at"
:
"2017-05-19T13:31:08.849Z"
,
"updated_at"
:
"2017-05-19T13:40:17.727Z"
,
"owner"
:
{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -57,21 +56,26 @@ GET /projects/:id/pipeline_schedules/:pipeline_schedule_id
|
`pipeline_schedule_id`
| integer | yes | The pipeline schedule id |
```
curl --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "http://192.168.10.5:3000/api/v4/projects/2
8/pipeline_schedules/11
"
curl --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "http://192.168.10.5:3000/api/v4/projects/2
9/pipeline_schedules/13
"
```
```
json
{
"id"
:
1
1
,
"description"
:
"
Acceptance Test
"
,
"id"
:
1
3
,
"description"
:
"
Test schedule pipeline
"
,
"ref"
:
"master"
,
"cron"
:
"
0 4
* * *"
,
"cron_timezone"
:
"A
merica/Los_Angeles
"
,
"next_run_at"
:
"2017-05-1
3T11:00
:00.000Z"
,
"cron"
:
"
* *
* * *"
,
"cron_timezone"
:
"A
sia/Tokyo
"
,
"next_run_at"
:
"2017-05-1
9T13:41
:00.000Z"
,
"active"
:
true
,
"created_at"
:
"2017-05-12T13:10:34.497Z"
,
"updated_at"
:
"2017-05-12T13:10:34.497Z"
,
"deleted_at"
:
null
,
"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"
,
...
...
@@ -101,21 +105,21 @@ POST /projects/:id/pipeline_schedules
|
`active `
| boolean | yes | The activation of pipeline schedule. If false is set, the pipeline schedule will deactivated initially. |
```
curl --request POST --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form description="Build packages" --form ref="master" --form cron="0 1 * * 5" --form cron_timezone="UTC" --form active="true" "http://192.168.10.5:3000/api/v4/projects/2
8
/pipeline_schedules"
curl --request POST --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form description="Build packages" --form ref="master" --form cron="0 1 * * 5" --form cron_timezone="UTC" --form active="true" "http://192.168.10.5:3000/api/v4/projects/2
9
/pipeline_schedules"
```
```
json
{
"id"
:
1
2
,
"id"
:
1
4
,
"description"
:
"Build packages"
,
"ref"
:
"master"
,
"cron"
:
"0 1 * * 5"
,
"cron_timezone"
:
"UTC"
,
"next_run_at"
:
"2017-05-
19
T01:00:00.000Z"
,
"next_run_at"
:
"2017-05-
26
T01:00:00.000Z"
,
"active"
:
true
,
"created_at"
:
"2017-05-1
2T13:18:58.87
9Z"
,
"updated_at"
:
"2017-05-1
2T13:18:58.87
9Z"
,
"
deleted_at
"
:
null
,
"created_at"
:
"2017-05-1
9T13:43:08.16
9Z"
,
"updated_at"
:
"2017-05-1
9T13:43:08.16
9Z"
,
"
last_pipeline
"
:
null
,
"owner"
:
{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -146,21 +150,26 @@ PUT /projects/:id/pipeline_schedules/:pipeline_schedule_id
|
`active `
| boolean | no | The activation of pipeline schedule. If false is set, the pipeline schedule will deactivated initially. |
```
curl --request PUT --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form cron="0 2 * * *" "http://192.168.10.5:3000/api/v4/projects/2
8/pipeline_schedules/11
"
curl --request PUT --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" --form cron="0 2 * * *" "http://192.168.10.5:3000/api/v4/projects/2
9/pipeline_schedules/13
"
```
```
json
{
"id"
:
1
1
,
"description"
:
"
Acceptance Test
"
,
"id"
:
1
3
,
"description"
:
"
Test schedule pipeline
"
,
"ref"
:
"master"
,
"cron"
:
"0 2 * * *"
,
"cron_timezone"
:
"A
merica/Los_Angeles
"
,
"next_run_at"
:
"2017-05-1
3T09
:00:00.000Z"
,
"cron_timezone"
:
"A
sia/Tokyo
"
,
"next_run_at"
:
"2017-05-1
9T17
:00:00.000Z"
,
"active"
:
true
,
"created_at"
:
"2017-05-12T13:10:34.497Z"
,
"updated_at"
:
"2017-05-12T13:22:07.798Z"
,
"deleted_at"
:
null
,
"created_at"
:
"2017-05-19T13:31:08.849Z"
,
"updated_at"
:
"2017-05-19T13:44:16.135Z"
,
"last_pipeline"
:
{
"id"
:
332
,
"sha"
:
"0e788619d0b5ec17388dffb973ecd505946156db"
,
"ref"
:
"master"
,
"status"
:
"pending"
},
"owner"
:
{
"name"
:
"Administrator"
,
"username"
:
"root"
,
...
...
@@ -186,21 +195,26 @@ POST /projects/:id/pipeline_schedules/:pipeline_schedule_id/take_ownership
|
`pipeline_schedule_id`
| integer | yes | The pipeline schedule id |
```
curl --request POST --header "PRIVATE-TOKEN: hf2CvZXB9w8Uc5pZKpSB" "http://192.168.10.5:3000/api/v4/projects/2
8/pipeline_schedules/11
/take_ownership"
curl --request POST --header "PRIVATE-TOKEN: hf2CvZXB9w8Uc5pZKpSB" "http://192.168.10.5:3000/api/v4/projects/2
9/pipeline_schedules/13
/take_ownership"
```
```
json
{
"id"
:
1
1
,
"description"
:
"
Acceptance Test
"
,
"id"
:
1
3
,
"description"
:
"
Test schedule pipeline
"
,
"ref"
:
"master"
,
"cron"
:
"0 2 * * *"
,
"cron_timezone"
:
"A
merica/Los_Angeles
"
,
"next_run_at"
:
"2017-05-1
3T09
:00:00.000Z"
,
"cron_timezone"
:
"A
sia/Tokyo
"
,
"next_run_at"
:
"2017-05-1
9T17
:00:00.000Z"
,
"active"
:
true
,
"created_at"
:
"2017-05-12T13:10:34.497Z"
,
"updated_at"
:
"2017-05-12T13:26:12.191Z"
,
"deleted_at"
:
null
,
"created_at"
:
"2017-05-19T13:31:08.849Z"
,
"updated_at"
:
"2017-05-19T13:46:37.468Z"
,
"last_pipeline"
:
{
"id"
:
332
,
"sha"
:
"0e788619d0b5ec17388dffb973ecd505946156db"
,
"ref"
:
"master"
,
"status"
:
"pending"
},
"owner"
:
{
"name"
:
"shinya"
,
"username"
:
"maeda"
,
...
...
@@ -226,21 +240,26 @@ DELETE /projects/:id/pipeline_schedules/:pipeline_schedule_id
|
`pipeline_schedule_id`
| integer | yes | The pipeline schedule id |
```
curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "http://192.168.10.5:3000/api/v4/projects/2
8/pipeline_schedules/11
"
curl --request DELETE --header "PRIVATE-TOKEN: k5ESFgWY2Qf5xEvDcFxZ" "http://192.168.10.5:3000/api/v4/projects/2
9/pipeline_schedules/13
"
```
```
json
{
"id"
:
1
1
,
"description"
:
"
Acceptance Test
"
,
"id"
:
1
3
,
"description"
:
"
Test schedule pipeline
"
,
"ref"
:
"master"
,
"cron"
:
"0 2 * * *"
,
"cron_timezone"
:
"A
merica/Los_Angeles
"
,
"next_run_at"
:
"2017-05-1
3T09
:00:00.000Z"
,
"cron_timezone"
:
"A
sia/Tokyo
"
,
"next_run_at"
:
"2017-05-1
9T17
:00:00.000Z"
,
"active"
:
true
,
"created_at"
:
"2017-05-12T13:10:34.497Z"
,
"updated_at"
:
"2017-05-12T13:26:12.191Z"
,
"deleted_at"
:
"2017-05-12T13:27:38.529Z"
,
"created_at"
:
"2017-05-19T13:31:08.849Z"
,
"updated_at"
:
"2017-05-19T13:46:37.468Z"
,
"last_pipeline"
:
{
"id"
:
332
,
"sha"
:
"0e788619d0b5ec17388dffb973ecd505946156db"
,
"ref"
:
"master"
,
"status"
:
"pending"
},
"owner"
:
{
"name"
:
"shinya"
,
"username"
:
"maeda"
,
...
...
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