Kamil Trzcinski
57e974c03b
Fix 500 when using CI
...
- Fix for Ci::Build state machine, allowing to process builds without the project
- Forcefully update builds that didn't want to update with state machine
- Fix saving GitLabCiService as Admin Template
2015-11-23 13:51:41 +01:00
Kamil Trzcinski
8248314bc9
Don't rescue Exception, but StandardError
2015-11-19 20:17:17 +01:00
Kamil Trzcinski
0df7a32ea5
Fix tests
2015-11-19 12:09:34 +01:00
Kamil Trzcinski
2b907f61ff
Commits without .gitlab-ci.yml are marked as skipped
...
- Save detailed error when YAML syntax
2015-11-19 12:09:34 +01:00
Dmitriy Zaporozhets
da8ca8b217
Merge branch 'annotate-models' into 'master'
...
Annotate models
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !1799
2015-11-14 08:27:12 +00:00
Dmitriy Zaporozhets
a237999f00
Annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-13 19:22:46 +01:00
Kamil Trzcinski
e53a56acea
Fix broken tests
2015-11-13 10:52:50 +01:00
Dmitriy Zaporozhets
37465f44b4
Merge pull request #9825 from huacnlee/cache-application-setting
...
Add caching for ApplicationSetting, Ci::ApplicationSetting.
2015-11-13 10:15:52 +01:00
Jason Lee
2e4a673cbc
Add caching for ApplicationSetting, Ci::ApplicationSetting.
...
ApplicationSetting.current was called in every pages, cache it and expires it after it updated.
This changes will avoid a SQL query in every pages (~0.3 - 0.5ms).
```SQL
SELECT "application_settings".* FROM "application_settings" ORDER BY "application_settings"."id" DESC LIMIT 1
```
2015-11-12 17:19:03 +08: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
c03da1caad
Extend yml syntax for only and except to support specifying repository path
2015-11-02 14:44:06 +01:00
Robert Speicher
2b1636a320
Merge branch 'fix-ci-badge' into 'master'
...
Fix CI badge
The previous code relied on having on ref stored in commit, however the ref was moved to the build.
Fixes #3104
See merge request !1690
2015-10-26 14:02:21 +00:00
Kamil Trzcinski
271ad4e354
Fix CI badge
...
The previous code relied on having on ref stored in commit, however the ref was moved to the build.
2015-10-26 12:23:40 +01:00
Kamil Trzcinski
6db014987d
Fix specific runner visibility
2015-10-26 11:23:11 +01:00
Kamil Trzcinski
f230b42f84
On CI Admin page show only projects that are present in GitLab
2015-10-23 11:45:45 +02:00
Kamil Trzcinski
0aa6061d6a
Implement when syntax in .gitlab-ci.yml
2015-10-15 23:49:39 +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 Trzciński
a3a80eac11
Merge branch 'show_pending_warning' into 'master'
...
Show warning when build is pending and there are not runners
This change is based on: !1530 .
This resolves #2967 .
See merge request !1573
2015-10-14 18:57:05 +00:00
Kamil Trzcinski
d9ece71ef0
Fix specs
2015-10-14 17:38:26 +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
09255eecd0
Remove ordering from :ci_commits relation
2015-10-14 17:28:38 +02:00
Kamil Trzcinski
a957eca6f3
Added builds view
2015-10-14 17:28:38 +02:00
Kamil Trzcinski
5807419519
Use tag? instead of tag to indicate that this is boolean
2015-10-14 17:28:17 +02:00
Kamil Trzcinski
7b5ab3ded5
Added CI_BUILD_TAG, _STAGE, _NAME and _TRIGGERED to CI builds
2015-10-14 17:28:17 +02:00
Kamil Trzcinski
33c9d6e45c
Fix retry and cancel for build
2015-10-14 12:56:52 +02:00
Kamil Trzcinski
e7cc554cc1
Fix retry and cancel URLs
2015-10-13 11:51:08 +02:00
Kamil Trzcinski
766da5fa7b
Fix broken matrix_for_ref?
...
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu >
2015-10-12 22:34:59 +02:00
Kamil Trzcinski
daca1c6511
Fix broken tests
2015-10-12 22:32:29 +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
69c04498ef
Small bug fixes
2015-10-12 15:55:12 +02:00
Kamil Trzcinski
0aefeeb882
Add Commit Status documentation
2015-10-12 12:42:27 +02:00
Kamil Trzcinski
914cfbd2f1
Implement Commit Status API
2015-10-12 11:53:49 +02:00
Dmitriy Zaporozhets
82b6a17ca7
Fix ci build routing and few tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-06 21:41:37 +02:00
Kamil Trzcinski
065fe557f7
Fixed failure reading .gitlab-ci.yml
2015-10-06 12:00:15 +02:00
Kamil Trzcinski
a266752821
Latest builds always include builds with unique name and unique ref
2015-10-06 11:59:55 +02:00
Kamil Trzcinski
c985389722
Add stage tests
2015-10-05 15:59:31 +02:00
Kamil Trzcinski
0367dbf043
Fix build pipelining
2015-10-05 14:15:15 +02:00
Kamil Trzcinski
5064c9038c
Fix next bunch of tests
2015-10-05 13:51:28 +02:00
Kamil Trzcinski
361dc3641d
Fix builds_without_retry
2015-10-05 12:38:00 +02:00
Kamil Trzcinski
317a746954
Make commit_spec run
2015-10-05 12:02:26 +02:00
Kamil Trzcinski
e3d870d7fc
Add user to Ci::Build to have pusher email address
2015-10-05 10:15:40 +02:00
Kamil Trzcinski
546a3c6561
Refactor commit and build
2015-10-05 09:52:35 +02:00
Guilherme Garnier
2b075f16c7
Fix rubocop warnings in app
2015-10-03 00:56:37 -05:00
Kamil Trzcinski
0e54847339
Fix: CI token removal regression from build trace
2015-10-01 11:43:06 +02:00
Kamil Trzcinski
9d8257238e
Fix: broken git clone URL for CI runners
2015-10-01 11:42:41 +02:00
Kamil Trzcinski
b9ccc79cb5
Delegate ci_project parameters to projects
...
- It delegates name, path, gitlab_url, ssh_url_to_repo
- Remove ability to set this parameters using CI API
This fixes GitLab project rename, namespace change, repository rename, etc.
2015-09-30 12:48:40 +02:00
Kamil Trzcinski
0d877d91e7
Make ensure_gitlab_ci_project return ci_project or create a new one
2015-09-29 10:47:04 +02:00
Kamil Trzcinski
0fa4ab5fd8
Rename commits to ci_commits
2015-09-29 10:47:04 +02:00