Kamil Trzcinski
39203f1adf
Pre-create all builds for Pipeline when a trigger is received
...
This change simplifies a Pipeline processing by introducing a special new status: created.
This status is used for all builds that are created for a pipeline.
We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped).
This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled.
This also allows us to visualise a full pipeline (with created builds).
This also removes an after_touch used for updating a pipeline state parameters.
Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
2016-08-11 15:22:35 +02:00
Paco Guzman
d05af7b7c6
Check for Ci::Build artifacts at database level
2016-07-29 14:08:41 +02:00
Kamil Trzcinski
41fa516bb6
Use value of yaml_variables
and when
from config_processor if undefined
2016-07-19 14:53:35 +02:00
Kamil Trzcinski
e00da96c88
Improve manual actions code and add model, service and feature tests
...
Manual actions are accessible from:
- Pipelines
- Builds
- Environments
- Deployments
2016-07-18 14:46:20 +02:00
Kamil Trzcinski
9912ad261f
Store when and yaml variables in builds table
2016-07-16 20:25:30 +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
3577b57f6b
Try to use pipeline
where applicable
2016-06-03 13:09:49 +02:00
Kamil Trzcinski
717fdd6d42
Rename Ci::Build commit to pipeline
2016-06-03 12:29:00 +02:00
Robert Speicher
6df45eb463
Move all factory definitions to their own file
2016-03-04 15:26:51 -05:00
Rémy Coutable
f36fde94d0
Add a spec for coverage indicator in project's builds list
2016-02-22 19:34:35 +01:00
Kamil Trzcinski
55701d9c6c
Fix specs
2016-02-19 18:30:43 +01:00
Grzegorz Bizon
287cc838ce
Fix build api specs after rebase
2016-02-19 17:24:59 +01:00
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
5e1edd372f
Add artifacts trait to build factory in specs
2016-02-19 17:24:03 +01:00
Grzegorz Bizon
8114786665
Fix builds scheduler when first build is allowed to fail
...
Before this fix when there was only one relevant, previous build and it
failed, but was allowed to fail, entire build had been marked as
skipped.
Closes #3192
2016-02-18 11:50:11 +01:00
Grzegorz Bizon
0ae7c95453
Add specs for build status helper class
2016-02-18 10:52:57 +01:00
Grzegorz Bizon
53c917a6c6
Remove unmaintainable db schema comment from build factory
2016-02-04 10:16:21 +01:00
Grzegorz Bizon
020623f3bb
Improve CI API specs related to operations on build
...
Conflicts:
spec/factories/ci/builds.rb
2016-02-04 10:13:58 +01:00
Tomasz Maczukin
6a98fb03e7
Remove hard-coded id from builds factory
2016-01-14 12:04:44 +01:00
Tomasz Maczukin
990bd06c04
Change :ci_build_canceled factory to :canceled trait
2016-01-13 16:05:49 +01:00
Tomasz Maczukin
5ba0232f79
Fix :ci_build_with_trace factory
2016-01-11 16:57:15 +01:00
Tomasz Maczukin
a17bf380cb
Add cancel/retry features to builds API
2015-12-30 16:37:47 +01:00
Tomasz Maczukin
593d87ea54
Add specs for build details/traces features in builds API
2015-12-30 15:12:07 +01:00
Kamil Trzcinski
e80e3f5372
Migrate CI::Project to Project
2015-12-11 18:02:09 +01:00
Kamil Trzcinski
914cfbd2f1
Implement Commit Status API
2015-10-12 11:53:49 +02:00
Kamil Trzcinski
f42078f7c1
Fix rest of tests
2015-10-05 14:31:51 +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
6d0980b011
Fix: ci_*_build factory should be valid
2015-09-15 20:51:03 +02:00
Dmitriy Zaporozhets
59c3a3239f
Fix commit specs
2015-09-10 15:52:52 +02:00
Dmitriy Zaporozhets
76c6aeb9bc
Merge CI factories and CI spec/support with GitLab
2015-09-09 13:37:50 +02:00