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
Grzegorz Bizon 5d85a04927 Make it possible to fabricate CI/CD bridge jobs 2019-01-25 10:32:40 +01:00
gfyoung 06892e88f5 Enable frozen string for lib/gitlab/ci
Enables frozen string for the following:

* lib/gitlab/ci/*.rb
* lib/gitlab/ci/build/**/*.rb
* lib/gitlab/ci/config/**/*.rb
* lib/gitlab/ci/pipeline/**/*.rb
* lib/gitlab/ci/reports/**/*.rb

Partially addresses #47424.
2018-10-26 16:36:42 -07:00
Grzegorz Bizon bf59ed3cf9 Simplify how we set pipeline builds user on creation 2018-03-23 14:52:33 +01:00
Grzegorz Bizon b6e4e449fb Integrate build seeds with variables expressions policy 2018-03-23 13:56:16 +01:00
Grzegorz Bizon 0e51842dca Move policy related specs our of YAML processor tests 2018-03-22 13:09:47 +01:00
Grzegorz Bizon c7809d097a Fix rubocop offense in pipeline build seed class 2018-03-22 11:03:44 +01:00
Grzegorz Bizon db3d031969 Evaluate only/except policies outside of YAML processor 2018-03-21 14:40:27 +01:00
Grzegorz Bizon 9b5a912f93 Make it easier to test pipeline stage seeds 2018-03-21 13:08:30 +01:00
Grzegorz Bizon ad61a18154 Support building all pipeline resource before saving 2018-03-21 09:53:26 +01:00
Grzegorz Bizon ab0cd2a8bf Introduce pipeline build seeds 2018-03-21 09:33:25 +01:00