Commit 357b9ec5 authored by Ronan OConnor's avatar Ronan OConnor

Merge branch 'docs-update-jobs-api-order' into 'master'

Documents that jobs are returned DESC by ID in API

Closes gitlab-com/support/docs#39

See merge request gitlab-org/gitlab!21507
parents 2f8896db e016291e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## List project jobs ## List project jobs
Get a list of jobs in a project. Get a list of jobs in a project. Jobs are sorted in descending order of their IDs.
``` ```
GET /projects/:id/jobs GET /projects/:id/jobs
...@@ -33,13 +33,23 @@ Example of response ...@@ -33,13 +33,23 @@ Example of response
}, },
"coverage": null, "coverage": null,
"allow_failure": false, "allow_failure": false,
"created_at": "2015-12-24T15:51:21.727Z", "created_at": "2015-12-24T15:51:21.802Z",
"started_at": "2015-12-24T17:54:24.729Z", "started_at": "2015-12-24T17:54:27.722Z",
"finished_at": "2015-12-24T17:54:24.921Z", "finished_at": "2015-12-24T17:54:27.895Z",
"duration": 0.192, "duration": 0.173,
"artifacts_expire_at": "2016-01-23T17:54:24.921Z", "artifacts_file": {
"id": 6, "filename": "artifacts.zip",
"name": "rspec:other", "size": 1000
},
"artifacts": [
{"file_type": "archive", "size": 1000, "filename": "artifacts.zip", "file_format": "zip"},
{"file_type": "metadata", "size": 186, "filename": "metadata.gz", "file_format": "gzip"},
{"file_type": "trace", "size": 1500, "filename": "job.log", "file_format": "raw"},
{"file_type": "junit", "size": 750, "filename": "junit.xml.gz", "file_format": "gzip"}
],
"artifacts_expire_at": "2016-01-23T17:54:27.895Z",
"id": 7,
"name": "teaspoon",
"pipeline": { "pipeline": {
"id": 6, "id": 6,
"ref": "master", "ref": "master",
...@@ -52,7 +62,7 @@ Example of response ...@@ -52,7 +62,7 @@ Example of response
"stage": "test", "stage": "test",
"status": "failed", "status": "failed",
"tag": false, "tag": false,
"web_url": "https://example.com/foo/bar/-/jobs/6", "web_url": "https://example.com/foo/bar/-/jobs/7",
"user": { "user": {
"id": 1, "id": 1,
"name": "Administrator", "name": "Administrator",
...@@ -83,23 +93,13 @@ Example of response ...@@ -83,23 +93,13 @@ Example of response
}, },
"coverage": null, "coverage": null,
"allow_failure": false, "allow_failure": false,
"created_at": "2015-12-24T15:51:21.802Z", "created_at": "2015-12-24T15:51:21.727Z",
"started_at": "2015-12-24T17:54:27.722Z", "started_at": "2015-12-24T17:54:24.729Z",
"finished_at": "2015-12-24T17:54:27.895Z", "finished_at": "2015-12-24T17:54:24.921Z",
"duration": 0.173, "duration": 0.192,
"artifacts_file": { "artifacts_expire_at": "2016-01-23T17:54:24.921Z",
"filename": "artifacts.zip", "id": 6,
"size": 1000 "name": "rspec:other",
},
"artifacts": [
{"file_type": "archive", "size": 1000, "filename": "artifacts.zip", "file_format": "zip"},
{"file_type": "metadata", "size": 186, "filename": "metadata.gz", "file_format": "gzip"},
{"file_type": "trace", "size": 1500, "filename": "job.log", "file_format": "raw"},
{"file_type": "junit", "size": 750, "filename": "junit.xml.gz", "file_format": "gzip"}
],
"artifacts_expire_at": "2016-01-23T17:54:27.895Z",
"id": 7,
"name": "teaspoon",
"pipeline": { "pipeline": {
"id": 6, "id": 6,
"ref": "master", "ref": "master",
...@@ -112,7 +112,7 @@ Example of response ...@@ -112,7 +112,7 @@ Example of response
"stage": "test", "stage": "test",
"status": "failed", "status": "failed",
"tag": false, "tag": false,
"web_url": "https://example.com/foo/bar/-/jobs/7", "web_url": "https://example.com/foo/bar/-/jobs/6",
"user": { "user": {
"id": 1, "id": 1,
"name": "Administrator", "name": "Administrator",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment