Commit Graph

18 Commits

Author SHA1 Message Date
GitLab Bot fc96671f81 Add latest changes from gitlab-org/gitlab@master 2019-10-15 12:06:06 +00:00
drew 9458192f2b Passing job:rules downstream and E2E specs for job:rules configuration 2019-09-09 13:21:26 +00:00
drew ac77bb9376 Introducing new Syntax for Ci::Build inclusion rules
- Added Gitlab::Ci::Config::Entry::Rules and Gitlab::Ci::Config::Entry::Rules:Rule
  to handle lists of Rule objects to be evalauted for job inclusion
- Added `if:` and `changes:` as available Rules::Rule::Clause classes
- Added Rules handling logic to Seed::Build#included? with extra specs
- Use DisallowedKeysValidator to mutually exclude rules: from only:/except: on job config
2019-08-20 20:03:43 +00:00
Kamil Trzciński 535c2d3c71 Merge branch 'mc/feature/pipeline-tracking-config-ce' into 'master'
Add `needs:` CI config option CE

Closes gitlab-ee#12334

See merge request gitlab-org/gitlab-ce!31346
2019-08-16 14:47:05 +00:00
Kamil Trzciński fcc20fde83 Add `ci_dag_limit_needs` feature flag
This makes to limit `needs:` to 5 by default.
Allow to increase the limit to 50 with disable of FF.
2019-08-14 15:48:16 +02:00
Kamil Trzciński 93e9518215 Require `needs:` to be present
This changes the `needs:` logic to require
that all jobs to be present. Instead of skipping
do fail the pipeline creation if `needs:` dependency
is not found.
2019-08-13 15:07:21 +02:00
Matija Čupić 16084ee9d3
Port changes from EE
Ports changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/12343
2019-08-04 19:42:29 +02:00
Kamil Trzciński 684751d3c2 Make needs: to require previous jobs
This changes `needs:` from weak reference
to have a strong reference.

This means that job will not be created
unless all needs are present as part of
a pipeline.
2019-08-02 18:41:40 +02:00
drew cimino d589a4e8e1 Build instead of create 2019-07-16 11:43:11 -04:00
drew cimino 2494110148 Polish for Ci::Pipeline::Seed::Build specs 2019-07-11 17:37:59 -04:00
drew cimino b9d43e27b2 Added specs for Ci::Pipeline::Seed::Build
- #included? when only: and except: both match
2019-07-11 17:37:59 -04:00
drew cimino d3962bf919 RSpec::Parameterized syntax for CI pipeline build seed specs 2019-06-21 16:32:58 -04:00
Grzegorz Bizon 5d85a04927 Make it possible to fabricate CI/CD bridge jobs 2019-01-25 10:32:40 +01:00
Kamil Trzciński 0103d5be96 Add config_options|variables to BuildMetadata
These are data columns that store runtime configuration
of build needed to execute it on runner and within pipeline.

The definition of this data is that once used, and when no longer
needed (due to retry capability) they can be freely removed.

They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking
support for json datatype on old enough version).
2019-01-04 16:38:17 +01:00
Matija Čupić b6c8d3ac9f
Reintroduce Command#protected_ref? 2018-12-08 19:28:54 +01:00
Grzegorz Bizon bf59ed3cf9 Simplify how we set pipeline builds user on creation 2018-03-23 14:52:33 +01:00
Grzegorz Bizon b40d5d0fbb Fix static analysis and tests related to YAML processing 2018-03-22 15:22:50 +01:00
Grzegorz Bizon 0e51842dca Move policy related specs our of YAML processor tests 2018-03-22 13:09:47 +01:00