Kamil Trzcinski
2b5449b96d
Fix Ci::Build#artifacts_expire_in= when assigning invalid duration
2016-06-14 14:51:09 +02:00
Kamil Trzcinski
60e0137c86
Fix specs
2016-06-14 11:38:34 +02:00
Kamil Trzcinski
c534d2e89e
Improve tests
2016-06-13 16:05:23 +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
7e9273dd94
Test controllers if they allow to keep artifacts
2016-06-13 11:07:23 +01:00
Kamil Trzcinski
921c356b5e
Rename commit to pipeline in TriggerRequest
2016-06-09 17:57:07 +02:00
Kamil Trzcinski
dbf235f514
Fix tests failures
2016-06-07 10:25:57 +02:00
Kamil Trzcinski
20c7144ed2
Rename all [ci_]commit to [ci_]pipeline in specs and features
2016-06-03 16:22:26 +02:00
Kamil Trzcinski
4d5f7aa008
Fix more places where we should rename ci_commit to pipeline
2016-06-03 14:46:17 +02:00
Kamil Trzcinski
717fdd6d42
Rename Ci::Build commit to pipeline
2016-06-03 12:29:00 +02:00
Grzegorz Bizon
2f1a229d15
Remove redundant factory namespace in build specs
...
Conflicts:
spec/models/build_spec.rb
2016-05-31 10:03:39 +02:00
Robert Speicher
75739e54be
Enable RSpec/NotToNot cop and auto-correct offenses
...
Also removes the note from the development/testing.md guide
2016-05-24 15:40:29 -04:00
Grzegorz Bizon
8001eed06e
Add method that check if build has tags
2016-05-19 22:01:53 +02:00
Grzegorz Bizon
83df638455
Disallow runner to pick untagged build if configured
2016-05-19 22:01:53 +02:00
Grzegorz Bizon
a6260b1eb7
Remove code that removes duplicate CI variables
...
At this point this is being handled by GitLab Runner and we need to
introduce this as a separate merge request.
2016-04-18 13:17:48 +02:00
Grzegorz Bizon
bdb06fa043
Improve build specs for job environment variables
2016-04-18 13:17:48 +02:00
Grzegorz Bizon
b7946b50fc
Read job variables directly from gitlab CI config
2016-04-18 13:17:48 +02:00
Grzegorz Bizon
b578fbfb85
Make it possible to override build variables
2016-04-18 13:17:47 +02:00
Grzegorz Bizon
a1363d39c6
Add variables keyword to job in CI config YAML
2016-04-18 13:17:47 +02:00
Kamil Trzcinski
16592e2b45
Fix review comments
...
- Remove unused Gitlab::Application.routes.url_helpers from Ci::Build
- Remove too much logic from a view, use Ci::Commit.matrix_builds
- Use ci_status_with_icon
- Don't describe symbols
2016-03-14 13:33:26 +01:00
Kamil Trzcinski
0672258915
Cleanup CiCommit and CiBuild
...
- Remove all view related methods from Ci::Build and CommitStatus
- Remove unused Ci::Commit and Ci::Build methods
- Use polymorphism to render different types of CommitStatus
2016-03-14 13:20:35 +01:00
Kamil Trzcinski
73be775cd7
Fix ci_build trace trait
2016-02-19 19:31:57 +01:00
Grzegorz Bizon
86a49dfb88
Move build erasable implementation from concern to model
...
Discussion:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3659905
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
21152d7d51
Use DELETE verb for erasing a build content
...
Also added API specs for that
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
89b181204c
Use build artifacts trait in build specs
2016-02-19 17:24:03 +01:00
Tomasz Maczukin
49d5c35b69
Fix old usages of ci_runner factory
2016-02-19 13:18:49 +01:00
Douwe Maan
30b0d06e9f
Fix specs
2016-01-28 15:10:48 +01:00
Kamil Trzcinski
9b0f57781e
Add method that calculates total size for artifacts subfolder
2016-01-20 21:55:13 +01:00
Kamil Trzcinski
ac652d82f1
Let the CI runner know about builds that this build depends on
...
This allows us to implement artifacts passing: runner will download artifacts from all prior builds
2016-01-14 19:45:55 +01:00
Grzegorz Bizon
f80d7a868e
Update build model specs
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
cfffc9eff2
Update build specs for artifacts browser support
2016-01-14 12:48:15 +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
Douwe Maan
17ed42e362
Merge branch 'issue_3452'
2015-12-21 17:43:58 +01:00
Jared Szechy
5a3237fd8d
Fix build coverage regex.
...
Added a spec for regex captures as well.
Fixes #2644
2015-12-20 13:18:14 -05:00
Rubén Dávila
0861b67f45
Fix broken spec. #3452
2015-12-16 14:37:57 -05: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
dd8102f2d1
Fix specs
2015-12-11 18:02:10 +01:00
Kamil Trzcinski
513d551c8f
Fix after column rename
2015-12-11 18:02:10 +01:00
Kamil Trzcinski
64bfd9d71a
Remove ci_ prefix from all ci related things
2015-12-11 18:02:09 +01:00
Kamil Trzcinski
e80e3f5372
Migrate CI::Project to Project
2015-12-11 18:02:09 +01:00
Douwe Maan
1e8d703a85
Tag model specs
2015-12-09 10:50:51 +01: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 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
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
7b5ab3ded5
Added CI_BUILD_TAG, _STAGE, _NAME and _TRIGGERED to CI builds
2015-10-14 17:28:17 +02:00
Kamil Trzcinski
914cfbd2f1
Implement Commit Status API
2015-10-12 11:53:49 +02:00