feat(exx-Pipeline): add gradle licencing
This commit is contained in:
parent
5c2bb72630
commit
8df7067f17
11
pipelines/licence/license-gradle.gitlab-ci.yml
Normal file
11
pipelines/licence/license-gradle.gitlab-ci.yml
Normal file
@ -0,0 +1,11 @@
|
||||
include:
|
||||
- '/templates/java/gradle/gradle-licence.gitlab-ci.yml'
|
||||
- '/templates/licence/licence.gitlab-ci.yml'
|
||||
|
||||
License-Bom:
|
||||
extends: .gradle-licence
|
||||
|
||||
License-Adoc:
|
||||
extends: .license-asciidoc
|
||||
variables:
|
||||
BOM_FILE: build/reports/bom.json
|
||||
12
templates/java/gradle/gradle-licence.gitlab-ci.yml
Normal file
12
templates/java/gradle/gradle-licence.gitlab-ci.yml
Normal file
@ -0,0 +1,12 @@
|
||||
.gradle-licence:
|
||||
image: $GRADLE_IMAGE
|
||||
stage: post-process
|
||||
before_script:
|
||||
- "cd $BACKEND_DIR"
|
||||
script:
|
||||
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS"
|
||||
artifacts:
|
||||
expire_in: 2 weeks
|
||||
reports:
|
||||
junit:
|
||||
- "$BACKEND_DIR/build/reports/bom.json"
|
||||
15
templates/license/license.gitlab-ci.yml
Normal file
15
templates/license/license.gitlab-ci.yml
Normal file
@ -0,0 +1,15 @@
|
||||
.license-asciidoc:
|
||||
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-license-tools
|
||||
stage: post-process
|
||||
variables:
|
||||
BOM_FILE: bom.json
|
||||
LICENSE_FILE: licenses.adoc
|
||||
before_script:
|
||||
- "cd $BACKEND_DIR"
|
||||
script:
|
||||
- licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_ADOC_FILE
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 2 weeks
|
||||
paths:
|
||||
- $LICENSE_ADOC_FILE
|
||||
Loading…
Reference in New Issue
Block a user