Skip to content
Snippets Groups Projects

ci-package-builder: Add FOSSology server info for license scan

Merged Frederic Danis requested to merge wip/fdanis/7404-v2022dev0-fossology-license-scan into master
+ 6
1
@@ -26,6 +26,7 @@ variables:
DEBIAN_MIRROR: https://deb.debian.org/debian
# Ensure that there is always a pristine checkout
GIT_STRATEGY: clone
FOSSOLOGY_URL: https://fossology.apertis.org
image: $DOCKER_IMAGE
@@ -168,7 +169,10 @@ scan-licenses:
script:
# the license blacklist can be set on per-project/per-section basic
- dpkg-source --before-build .
- ci-license-scan --blacklist-licenses "${LICENSE_BLACKLIST}"
- ci-license-scan --fossology-host "${FOSSOLOGY_URL}"
--fossology-username "${FOSSOLOGY_USERNAME}" --fossology-password "${FOSSOLOGY_PASSWORD}"
--source-url "https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}" --source-branch "${CI_COMMIT_BRANCH}"
--blacklist-licenses "${LICENSE_BLACKLIST}"
- dpkg-source --after-build .
- mv debian/apertis/copyright.new debian/apertis/copyright
- git add -f debian/apertis/copyright
@@ -184,6 +188,7 @@ scan-licenses:
paths:
- debian/apertis/copyright
- debian/apertis/copyright.new
- debian/apertis/copyright.fossology
- debian/fill.copyright.blanks.yml
- debian/copyright-scan-patterns.yml
Loading