Grzegorz Bizon
caf6b9918e
Check warnings when building compound status SQL query
2017-06-20 15:32:29 +02:00
Grzegorz Bizon
21f3e9ce26
Move custom compound status method to commit status
2017-06-20 15:32:29 +02:00
Grzegorz Bizon
64e09a1b35
Fix pipeline status when allowed to fail jobs present
2017-06-20 15:32:29 +02:00
Grzegorz Bizon
f71a9de14d
Exclude manual actions from cancelable jobs scope
2017-05-19 20:45:49 +02:00
Kamil Trzcinski
16a2eba52b
Count number of queries
2017-04-07 18:34:03 +02: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
Grzegorz Bizon
f441b95bb3
Fix pipeline status for transition between stages
2017-03-20 19:16:48 +01:00
Kamil Trzcinski
b817ce2d7e
Sort builds in stage dropdown
...
Order: failed pending running manual canceled success skipped created
2017-03-07 12:46:53 +01:00
Grzegorz Bizon
e455492501
Extend specs for pipelines with manual blocking actions
2017-03-06 10:04:04 +01:00
Grzegorz Bizon
57253f04c9
Fix specs for detailed statuses for manual actions
2017-03-06 10:04:04 +01:00
Grzegorz Bizon
ac5bd3b73c
Reinstitute a core manual
status for manual actions
2017-03-06 10:04:04 +01:00
Grzegorz Bizon
dd24091191
Add support for blocking actions to CI/CD pipeline
2017-03-06 10:04:04 +01:00
Grzegorz Bizon
79ea01bfaf
Refactor code related to pipeline blocking actions
2017-03-06 10:04:04 +01:00
Kamil Trzcinski
be039d22d7
Make manual actions blocking
2017-03-06 10:04:04 +01:00
Douwe Maan
b7d8df503c
Enable Style/MutableConstant
2017-02-23 09:31:56 -06:00
Grzegorz Bizon
73fcfb296c
Add a default status const to common status concern
2017-01-18 11:34:55 +01:00
Kamil Trzcinski
c4e46c5740
Fix success status
2016-12-07 12:47:06 +01:00
Kamil Trzcinski
260d754ca8
Fix handling of allowed to failure jobs
2016-12-06 14:13:21 +01:00
Kamil Trzcinski
6d80b94a89
Fix handling of skipped vs success status
2016-12-06 14:13:21 +01:00
Kamil Trzcinski
ca639c9b82
Allow to retry failed or canceled builds and fix cancel running specs failure
2016-11-19 14:04:11 +01:00
Lin Jen-Shin
6d1c5761cd
Improve how we could cancel pipelines:
...
* Introduce `HasStatus.cancelable` which we might be able to cancel
* Cancel and check upon `cancelable`
* Also cancel on `CommitStatus` rather than just `Ci::Build`
Fixes #23635
Fixes #17845
2016-11-17 20:22:57 +08:00
Annabel Dunstone Gray
d61f8a18e0
Move build order array to HasStatus module
2016-10-18 08:29:29 -05:00
Lin Jen-Shin
5c9ac560e7
Introduce all_state_names so that we could avoid NOT IN
2016-10-05 00:10:23 +08:00
Lin Jen-Shin
7fb6a73db5
We don't need self. there. (sorry, can't resist anymore)
2016-10-03 19:49:53 +08:00
Lin Jen-Shin
afc0ae5cbe
Fix tests. Check 'success' first (default status)
2016-10-03 19:35:53 +08:00
Lin Jen-Shin
9c2306006c
Remove dead code
2016-10-03 18:35:36 +08:00
Lin Jen-Shin
8dfec32d2b
Rename ignored to failed_but_allowed, introduce exclude_ignored
...
which merges previous exclude_ignored_jobs and failed_but_allowed,
so that we don't treat ignored a special case in HasStatus.
2016-10-03 18:22:51 +08:00
Lin Jen-Shin
f0002da09c
Add a test for on_failure jobs in the middle
2016-10-01 14:38:39 +08:00
Lin Jen-Shin
33bbfd277b
on_failure should also be ignored, and status_sql should
...
also respect this ignorance. Address feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6604#note_16273363
2016-10-01 14:17:54 +08:00
Lin Jen-Shin
f3b02b9e6e
Or we could simply ignore skipped manual jobs
2016-09-30 18:39:08 +08:00
Lin Jen-Shin
6053acf5e6
We consider skipped = success, fixes #22598
2016-09-30 03:41:38 +08:00
Kamil Trzcinski
e0f90fb2de
Return created status
2016-09-18 20:39:44 +02:00
Lin Jen-Shin
50e62b3eb8
Fix Commit#status, feedback:
...
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6305#note_15230024
2016-09-14 01:25:26 +08:00
Lin Jen-Shin
47dccfb329
Fix test (credits to Kamil)
2016-09-12 20:22:59 +08:00
De Wet Blomerus
23bed91b3f
rename Statuseable to HasStatus
2016-08-25 04:55:32 +02:00