diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-10-07 10:22:40 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-10-22 10:20:12 +0200 |
commit | bc333f38d82097288586d0847d6f8e31738e8575 (patch) | |
tree | 8658e5ceb70ffde4177fb209923c2d809366c63e /lib | |
parent | 44a9231d19f88c5551f7184917ddc4bba13e7d00 (diff) | |
download | gitlab-ce-bc333f38d82097288586d0847d6f8e31738e8575.tar.gz |
Support licenses and performancesupport-license-management-and-performance
This introduces a new syntax for all licenses and performance jobs:
```yaml
job:
reports:
performance: performance.json
license_management: gl-license-management-report.json
```
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/entry/reports.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/entry/reports.rb b/lib/gitlab/ci/config/entry/reports.rb index 98f12c226b3..3ac2a6fa777 100644 --- a/lib/gitlab/ci/config/entry/reports.rb +++ b/lib/gitlab/ci/config/entry/reports.rb @@ -11,7 +11,7 @@ module Gitlab include Validatable include Attributable - ALLOWED_KEYS = %i[junit codequality sast dependency_scanning container_scanning dast].freeze + ALLOWED_KEYS = %i[junit codequality sast dependency_scanning container_scanning dast performance license_management].freeze attributes ALLOWED_KEYS @@ -26,6 +26,8 @@ module Gitlab validates :dependency_scanning, array_of_strings_or_string: true validates :container_scanning, array_of_strings_or_string: true validates :dast, array_of_strings_or_string: true + validates :performance, array_of_strings_or_string: true + validates :license_management, array_of_strings_or_string: true end end |