Kamil Trzcinski
0806476761
Remove current_user && when can? is used
2016-02-05 20:17:58 +01:00
Kamil Trzcinski
6fea7c386f
Merge remote-tracking branch 'origin/master' into ci-permissions
...
# Conflicts:
# app/views/projects/builds/index.html.haml
2016-02-04 13:16:48 +01:00
Dmitriy Zaporozhets
8cd25901d3
Use top-area component for top page navigation for pages that contains list of items
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-02-03 18:41:55 +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
Kamil Trzcinski
9b0f57781e
Add method that calculates total size for artifacts subfolder
2016-01-20 21:55:13 +01:00
Grzegorz Bizon
6fe33804dc
Remove dropdown containing CI Lint button on builds page
...
Link to CI Lint on builds page will be a separate button from now on.
2016-01-18 08:12:31 +01:00
Grzegorz Bizon
59ffe978fd
Reuse existing CSS classes when exposing CI Lint tool
2016-01-17 16:39:14 +01:00
Grzegorz Bizon
adcab296fd
Expose link to CI Lint Tool on builds page
2016-01-17 16:39:14 +01:00
Dmitriy Zaporozhets
620d8b68a1
Merge branch 'remove-gray-bg'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-01-14 14:09:49 +01:00
Grzegorz Bizon
487b0a026f
Improvements, readability for artifacts browser
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
ece114e630
Update artifacts download specs
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
5ff7ec42dc
Add method that checks if artifacts browser is supported
...
This is needed because of backward compatibility. Previously artifacts
archive had `.tar.gz` format, but artifacts browser requires ZIP format
now.
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
8eeed761a9
Update specs for CI Build, add artifacts? method
...
`artifacts?` method checks if artifacts archive is available.
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
9e0e9342a4
Rename method that returns url to CI build artifacts download
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
d8cc9e4ef7
Add button to CI build artifacts browser into build summary
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
f091272f19
Move artifacts controller level up
...
This reverts nesting artifacts controller in builds module.
2016-01-14 12:48:12 +01:00
Grzegorz Bizon
a96d45c694
Add view action to artifacts controller
2016-01-14 12:48:12 +01:00
Dmitriy Zaporozhets
03090a88d8
Replace all navigation menu with nav-links class
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-01-13 15:58:04 +01:00
Kamil Trzciński
b6c2908cb2
Merge branch 'fix-build-page-typo' into 'master'
...
Fix typo in build page of projects
The column containing links to the builds is named Runner but actually
contains the Build.
See merge request !2347
2016-01-11 11:54:18 +00:00
Steffen Köhler
9061b55c17
Fix typo in build page of projects
...
The column containing links to the builds is named Runner but actually
contains the Build ID.
[ci skip]
2016-01-10 16:20:51 +01:00
Douglas Barbosa Alexandre
567dc62b6d
Show 'All' tab by default in the builds page
2016-01-04 10:21:10 -02:00
Rubén Dávila
3f83a1585f
Add link to MR from Build detail page. #3452
2015-12-16 11:54:48 -05:00
Kamil Trzcinski
e80e3f5372
Migrate CI::Project to Project
2015-12-11 18:02:09 +01:00
Robert Speicher
98958decce
Add number_with_delimiter to build counts
2015-12-09 13:55:31 -05:00
Douwe Maan
14969ac87f
Add '#' to build page title
2015-12-08 13:17:05 +01:00
Douwe Maan
b53769aedc
Change "Cancel all" to "Cancel running"
2015-12-08 13:06:54 +01:00
Douwe Maan
90a4653593
Remove top border from build page
2015-12-08 13:06:54 +01:00
Douwe Maan
c64a881a40
Allow center top menu to span multiple lines
2015-12-08 13:06:52 +01:00
Kamil Trzciński
7ec7970b14
Merge branch 'fix_project_build_links' into 'master'
...
Fix "Other Builds" links in Projects Build page
Found a minor issue where all links in the "Other Builds" section of Project Builds was linking to the same build #. This should fix it.
See merge request !1785
2015-11-12 09:41:54 +00:00
Andy Brandt
73f8763e6a
fix build link
2015-11-10 15:42:17 -06:00
Kamil Trzcinski
d0e3e823a2
Implement Build Artifacts
...
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Kamil Trzcinski
ba68facf8d
CI details cleanup
...
- Add page titles to CI settings.
- Fix CI admin navigation.
- Remove duplicated scope.
- Use monospace font for commit sha.
- Add page title and header title to build page.
- Proper authorization for cancel/retry builds.
- Use gitlab pagination theme for builds and group members.
- Don't paginate builds widget on build page.
- Add badges to commit page Changes/Builds tabs.
- Add "Builds" to commit Builds tab page title.
- Add and use Ci::Build#retryable? method.
- Add CI::Build#retried? method.
- Allow all failed commit builds to be retried.
- Proper authorization for cancel/retry all builds.
- Remove unused param.
- Use time_ago_with_tooltip where appropriate.
- Tweak builds index text
- Remove duplication between builds/build and commit_statuses/commit_status.
- Use POST rather than GET for canceling and retrying builds.
- Remove redundant URL helpers.
- Add build ID to build page.
- Link branch name on build page.
- Move commit/:sha/ci to commit/:sha/builds.
2015-11-05 15:24:27 +01:00
Kamil Trzcinski
127836dd54
Fix small CI UI regressions
2015-10-23 11:45:45 +02:00
Kamil Trzcinski
c21d46c29f
Fix build trace updating
2015-10-21 12:34:25 +02:00
Douwe Maan
a32f776609
Make tables full width.
2015-10-19 11:19:45 +02:00
Kamil Trzcinski
567460d16d
Added missing comma [ci skip]
2015-10-15 18:11:46 +02:00
Kamil Trzcinski
71d0cfcff6
Make the builds view and warning notice nicer
2015-10-15 17:14:01 +02:00
Kamil Trzcinski
0d09b5fefc
Fix builds view count indicator
2015-10-15 15:50:40 +02:00
Kamil Trzciński
daccc54d25
Merge branch 'builds-view' into 'master'
...
Added builds view

/cc @dzaporozhets @vsizov
See merge request !1593
2015-10-15 11:35:57 +00:00
Kamil Trzcinski
9fa209e1d8
Remove unneeded change
2015-10-15 11:51:45 +02:00
Kamil Trzcinski
0ff8975939
Fix cancel_all specs
2015-10-14 19:59:56 +02:00
Kamil Trzcinski
d9e2232f63
Fix warning sign
2015-10-14 17:29:18 +02:00
Kamil Trzcinski
7af4f5215e
Show warning if build doesn't have runners with specified tags or runners didn't connect recently
...
Slightly refactor runner status detection: moving it to Runner class
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu >
2015-10-14 17:29:18 +02:00
Kamil Trzcinski
4d69c6a336
Refactor builds view
2015-10-14 17:28:38 +02:00
Kamil Trzcinski
a957eca6f3
Added builds view
2015-10-14 17:28:38 +02:00
Kamil Trzcinski
5cd504ed33
Rename builds_without_retry to latest_builds
2015-10-12 16:39:08 +02:00
Kamil Trzcinski
789fe7b489
Update rendering
2015-10-12 16:32:58 +02:00
Kamil Trzcinski
914cfbd2f1
Implement Commit Status API
2015-10-12 11:53:49 +02:00
Dmitriy Zaporozhets
1e06cabf4a
Remove Ci::Commit and Ci::Build controllers
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-07 15:24:32 +02:00
Dmitriy Zaporozhets
f6223ffb31
Move CI build page to CE project
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-06 19:34:21 +02:00