Grzegorz Bizon
9e211091a8
Enable Style/EmptyLines cop, remove redundant ones
2016-07-01 21:56:17 +02:00
Grzegorz Bizon
2b8f04a669
Remove redundant check in commit builds API endpoint
2016-06-28 17:15:38 +02:00
Grzegorz Bizon
b9b95a9f19
Improve commit builds API endpoint RESTful behavior
...
1. Return 404 if commit is not found (RESTful resource not found)
2. Return an empty array if pipeline is not found (resource present, no
associated builds found)
3. Return an empty array if pipeline found but no builds there (resource
present, no associated builds)
2016-06-28 12:22:31 +02:00
Grzegorz Bizon
8e66618749
Find all builds for commit if multiple pipelines
2016-06-28 11:34:49 +02:00
Kamil Trzcinski
006b650988
Merge remote-tracking branch 'origin/master' into environments-and-deployments
...
# Conflicts:
# db/schema.rb
2016-06-14 16:19:29 +02:00
Kamil Trzcinski
60e0137c86
Fix specs
2016-06-14 11:38:34 +02:00
Kamil Trzcinski and Phil Hughes
421be01dab
Improve design based on review
2016-06-13 11:09:19 +01:00
Kamil Trzcinski and Phil Hughes
6013768fec
Added keep artifacts API endpoint
2016-06-13 11:07:23 +01:00
Kamil Trzcinski
907c0e6796
Added initial version of deployments
2016-06-10 23:36:54 +02:00
Kamil Trzcinski
08baa9983e
Use pipelines in context of Project
2016-06-03 13:34:03 +02:00
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 and 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