If you want to override the job definition (for example, change properties like
`variables` or `dependencies`), you need to declare a `license_management` job
`variables` or `dependencies`), you need to declare a `license_scanning` job
after the template inclusion and specify any additional keys under it. For example:
```yaml
include:
template:License-Management.gitlab-ci.yml
template:License-Scanning.gitlab-ci.yml
license_management:
license_scanning:
variables:
CI_DEBUG_TRACE:"true"
```
...
...
@@ -160,9 +173,9 @@ Feel free to use it for the customization of Maven execution. For example:
```yaml
include:
template:License-Management.gitlab-ci.yml
template:License-Scanning.gitlab-ci.yml
license_management:
license_scanning:
variables:
MAVEN_CLI_OPTS:--debug
```
...
...
@@ -188,13 +201,48 @@ by setting the `LM_PYTHON_VERSION` environment variable to `2`.
```yaml
include:
template:License-Management.gitlab-ci.yml
template:License-Scanning.gitlab-ci.yml
license_management:
license_scanning:
variables:
LM_PYTHON_VERSION:2
```
### Migration from `license_management` to `license_scanning`
In GitLab 12.8 a new name for `license_management` job was introduced. This change was made to improve clarity around the purpose of the scan, which is to scan and collect the types of licenses present in a projects dependencies.
The support of `license_management` is scheduled to be dropped in GitLab 13.0.
If you're using a custom setup for License Compliance, you're required
to update your CI config accordingly:
1. Change the CI template to `License-Scanning.gitlab-ci.yml`.
1. Change the job name to `license_management` (if you mention it in `.gitlab-ci.yml`).
1. Change the artifact name to `gl-license-scanning-report.json` (if you mention it in `.gitlab-ci.yml`).