Kamil Trzcinski
46fd485c58
Fix API implementation
2016-02-19 18:30:43 +01:00
Kamil Trzcinski
921cfb66e6
Introduce API for serving the artifacts archive
2016-02-19 18:30:13 +01:00
Grzegorz Bizon
73c9d80bdc
Record user that erased a build through API
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
7d5a182624
Use POST method instead of DELETE when erasing a build
...
Discussion:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3742042
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
287cc838ce
Fix build api specs after rebase
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
293999cabb
Fix name of build erasable, remove superfluous method from it
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
13f92521c2
Move build eraseable API to proper API context
2016-02-19 17:24:59 +01:00
Kamil Trzcinski
055afab5c7
Make the CI permission model simpler
...
This MR simplifies CI permission model:
- read_build: allows to read a list of builds, artifacts and trace
- update_build: allows to cancel and retry builds
- create_build: allows to create builds from gitlab-ci.yml (not yet implemented)
- admin_build: allows to manage triggers, runners and variables
- read_commit_status: allows to read a list of commit statuses (including the overall of builds)
- create_commit_status: allows to create a new commit status using API
Remove all extra methods to manage permission.
Made all controllers to use explicitly the new permissions.
2016-02-02 09:18:08 +01:00
Tomasz Maczukin
2c7d9cfa7d
Move Ci::Build#available_statuses to AVAILABLE_STATUSES constant in CommitStatus
2016-01-14 14:59:04 +01:00
Tomasz Maczukin
9733849618
Add some fixes after review
2016-01-13 15:17:59 +01:00
Tomasz Maczukin
5dcfd7d067
Add TODO notice to build trace feature in CI API
2016-01-11 15:49:25 +01:00
Tomasz Maczukin
96bbc145f3
Change commit builds URL in builds API
2016-01-11 10:20:45 +01:00
Tomasz Maczukin
4eb27d7c72
Add some modifications to builds API and specs
2016-01-08 23:33:45 +01:00
Tomasz Maczukin
1eb7b5ee8d
Modify entities for builds API
2016-01-08 22:57:42 +01:00
Tomasz Maczukin
549a2fa787
Modify builds scope filtering in builds API
2016-01-08 14:01:31 +01:00
Tomasz Maczukin
a862ade55b
Update ./doc/api/
2016-01-05 16:36:14 +01:00
Tomasz Maczukin
628297fe56
Remove incorrect 'default' values from method description
2015-12-31 23:01:28 +01:00
Tomasz Maczukin
d2601211a0
Add specs for build listings in API
2015-12-29 23:12:36 +01:00
Tomasz Maczukin
8d4555037a
Add cancel/retry endpoints to build API
2015-12-28 16:38:29 +01:00
Tomasz Maczukin
e7d0746d93
Add 'not_found' notifications in build/trace details
2015-12-28 16:38:02 +01:00
Tomasz Maczukin
d398e78ea0
Add endpoint for getting builds for a specific commit
2015-12-28 15:49:13 +01:00
Tomasz Maczukin
f4cff4dcd0
Modify build pagination to use 'paginate' helper
2015-12-28 13:33:35 +01:00
Tomasz Maczukin
f39959d00a
Add some fixes to builds API
2015-12-28 13:09:51 +01:00
Tomasz Maczukin
b5fef34f1e
Fix example request url
2015-12-24 19:18:01 +01:00
Tomasz Maczukin
f4e7a8893d
Add builds API (listing, showing trace)
2015-12-24 19:11:30 +01:00