Commit graph

10 commits

Author SHA1 Message Date
Grzegorz Bizon
cb4c9a03ce Extend specs for code we use to calculate statuses 2017-03-06 13:54:29 +01:00
Lin Jen-Shin
b6a7a47834 Add a lot of tests for scopes, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18622499
2016-11-19 01:02:49 +08:00
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
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
Grzegorz Bizon
9661765127 Update commit status factory to reflect recent changes 2016-01-26 15:23:57 +01:00
Grzegorz Bizon
5583b9526b Add specs for build created using generic commit status 2016-01-26 08:34:48 +01:00
Zeger-Jan van de Weg
a7682f8775 Specs for 'Merge When Build Succeeds' 2015-12-02 13:27:16 +01:00
Kamil Trzcinski
914cfbd2f1 Implement Commit Status API 2015-10-12 11:53:49 +02:00