-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlicense-listing.yml
28 lines (26 loc) · 1.13 KB
/
license-listing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Only for backward compatibility, migrate ASAP your project include to /scanning/dependency-scanning.yml template!
include:
# The legacy License Compliance analyzer was deprecated in GitLab 15.9 and removed in GitLab 16.3.
# Source: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/License-Scanning.gitlab-ci.yml
- template: License-Scanning.gitlab-ci.yml
- local: '/deprecation-warning.yml'
license_scanning:
stage: license-list
variables:
LICENSE_MANAGEMENT_VERSION: 4
LICENSE_MANAGEMENT_SETUP_CMD: npm install --global yarn; curl -s -o settings.xml https://gitlab.com/redmic-project/docker/maven/-/raw/master/config/settings.xml
MAVEN_CLI_OPTS: -DskipTests --settings settings.xml
artifacts:
name: '${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME}'
expire_in: '1 months'
paths:
- gl-license-scanning-report.*
rules:
- if: $LICENSE_MANAGEMENT_DISABLED
when: never
- if: $CI_MERGE_REQUEST_ID ||
$CI_COMMIT_TAG ||
$CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_BRANCH &&
$GITLAB_FEATURES =~ /\blicense_scanning\b/