Commit Graph

35 Commits

Author SHA1 Message Date
Shinya Maeda a74184eb5e Fix static analysys 2018-05-11 16:52:48 +09:00
Shinya Maeda 46fa3089c8 Rescue RecordNotUnique when pipeline is created with non-unique iid 2018-05-11 16:49:18 +09:00
Matija Čupić c6e394bb84
Improve variable comparison 2018-05-04 12:35:36 +02:00
Matija Čupić fc42ba6c5d
Merge branch 'master' into 44059-specify-variables-when-executing-a-manual-pipeline-from-the-ui 2018-05-02 15:54:06 +02:00
Grzegorz Bizon 0fd0b64be6 Use stages position column to track stage index 2018-05-01 14:30:44 +02:00
Grzegorz Bizon b337a086d5 Merge branch 'master' into backstage/gb/migrate-pipeline-stages-index
* master: (106 commits)
2018-05-01 14:24:39 +02:00
Jose d3327e0dfa Merge branch 'master' into 44059-specify-variables-when-executing-a-manual-pipeline-from-the-ui 2018-04-30 17:00:16 -05:00
Grzegorz Bizon e4d6984465 Do not save associated records for pipeline builds twice 2018-04-25 13:35:40 +02:00
Grzegorz Bizon c9dc51111d Rename stage index column name to priority column 2018-04-24 15:48:10 +02:00
Grzegorz Bizon cae3092f23 Fix specs creating a pipeline stage with implicit index 2018-04-24 11:07:37 +02:00
Matija Čupić 317477fc67
Extend Gitlab::Ci::Pipeline::Chain::Command with variables_attributes 2018-04-18 19:28:59 +02:00
Grzegorz Bizon 1c2530ded3 Expose evaluable variables method from build object 2018-03-23 15:21:31 +01:00
Grzegorz Bizon b9e329769e Add specs for pipeline chain that builds stages and jobs 2018-03-22 14:36:21 +01:00
Grzegorz Bizon 0e51842dca Move policy related specs our of YAML processor tests 2018-03-22 13:09:47 +01:00
Grzegorz Bizon b82de0f008 Reduce stage seeds coupling between pipeline and YAML
This is a first step to decouple pipeline from YAML processing. It
reduces the coupling by removing some methods that introduce coupling
and by moving logic into separate chain element that is being used to
populate pipelines with stages and builds.
2018-03-21 12:12:45 +01:00
Grzegorz Bizon 585e6a992f Add specs for chain element that populates a pipeline 2018-03-21 11:43:27 +01:00
Kamil Trzcinski 99101f9484 Fix Rubocop 2017-12-08 13:00:09 +01:00
Kamil Trzcinski b5f6a5f91f Add Chain::Command specs 2017-12-08 12:01:15 +01:00
Kamil Trzcinski ad3be46b9f Implement and use Gitlab::Ci::Pipeline::Chain::Command 2017-12-08 12:01:15 +01:00
Grzegorz Bizon b30e0e0691 Fix invalid pipeline build chain tag evaluation 2017-12-08 10:50:10 +01:00
Grzegorz Bizon 1486950bc9 Extend pipeline build chain specs 2017-10-11 14:51:39 +02:00
Grzegorz Bizon eedf43d69b Set pipeline config source attribute in a build step 2017-10-11 14:48:28 +02:00
Grzegorz Bizon 54f490a455 Add initial specs for pipeline build chain class 2017-10-10 14:00:56 +02:00
Grzegorz Bizon 9f639b0733 Set a pipeline failure reason when it has YAML errors
Conflicts:
	app/models/ci/pipeline.rb
2017-10-05 11:38:01 +02:00
Grzegorz Bizon 835bdcb88e Add specs for pipeline chain builder sequence class 2017-09-26 14:24:40 +02:00
Grzegorz Bizon f6bd832f3f Fix some code style offenses in pipeline chain classes 2017-09-26 14:15:05 +02:00
Grzegorz Bizon 53cad50043 Add missing tests for pipeline chain access validator 2017-09-26 14:13:08 +02:00
Grzegorz Bizon 6a9cfdde02 Add specs for pipeline builder that validates config 2017-09-26 14:04:28 +02:00
Grzegorz Bizon 39f05fd85e Add specs for pipeline builder repository validator 2017-09-26 13:40:37 +02:00
Grzegorz Bizon 652ecff91b Add specs for builder chain that persist a pipeline 2017-09-26 13:34:53 +02:00
Grzegorz Bizon 2432d5bd9e Add specs for builder chain step that skipps pipelines 2017-09-26 13:22:28 +02:00
Grzegorz Bizon da15b38850 Add specs for pipeline builder abilities validator 2017-09-26 13:00:29 +02:00
Grzegorz Bizon fa3fb23fb1 Move pipeline builder validation chain to a module 2017-09-26 11:53:50 +02:00
Grzegorz Bizon 609fa45f0e Split pipeline chain builder validation class 2017-09-26 11:50:47 +02:00
Grzegorz Bizon 8f47d484da Extract pipeline chain builder classes from service 2017-09-25 16:22:00 +02:00