Commit graph

11 commits

Author SHA1 Message Date
Rydkin Maxim
b5c286995c fix rubocop 2017-04-04 21:11:24 +03:00
Rydkin Maxim
a4d08e6bab rename auto_canceled_by and add foreign key 2017-04-04 21:11:24 +03:00
Rydkin Maxim
40f67c1da8 more brief way of get parent commit 2017-04-04 21:11:24 +03:00
Rydkin Maxim
9bdb869a0a fix typo 2017-04-04 21:11:24 +03:00
Rydkin Maxim
c77b1cb0fb add does not cancel HEAD pipeline spec 2017-04-04 21:11:24 +03:00
Rydkin Maxim
c81ef3041e add auto-cancel for pending pipelines on branch, if they are not HEAD
fix changelog MR reference

add non-HEAD builds finder and add `created` pipelines to scope

add spec for auto-cancel non-HEAD pipelines and refactor create_pipeline_service_spec

more refactoring for spec

adds option for auto-cancel into CI/CD settings

fix spec to new configuration

fix rubocop

fix schema.rb

fix schema.rb

replace Gitlab 9.0 with 9.1 in doc

change wording on pipeline settings

added auto_canceled_by field as identifier of autocancel subject

remove unnecessary index

replace service with retry_lock

replace auto_cancel_pending_pipelines boolean setting with integer (and enum in model)

fix schema.rb

fix schema.rb

remove projekt attribute and clean up spec

clean up spec withcouple of shared examples

added spec for "It does not cancel current pipeline" scenario

add some specs to auto-cancel

add spec for another branch pipelines
2017-04-04 21:11:24 +03:00
Robert Speicher
ca9a79f620 Use :empty_project where possible in service specs 2017-03-27 20:44:09 -04:00
Z.J. van de Weg
3ebd29b538 Futher rename the CI variables 2017-03-16 08:49:01 +01:00
Luke "Jared" Bennett
ad88cf3e17
updated ci skip regex to accept underscores and hyphens 2017-02-22 11:29:18 +00:00
Nick Thomas
58486918fc Create environments when the build referencing them is created 2016-12-15 13:57:04 +00: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