feat(exx-Pipeline): change license workflow

This commit is contained in:
Wolfram Gulde 2022-05-19 15:15:49 +02:00 committed by Marcel Feix
parent 352f1bf910
commit 930166490b
No known key found for this signature in database
GPG Key ID: 04D016E104A25F03
6 changed files with 14 additions and 49 deletions

View File

@ -1,11 +0,0 @@
include:
- '/templates/java/gradle/gradle-license.gitlab-ci.yml'
- '/templates/license/license.gitlab-ci.yml'
License-Bom:
extends: .gradle-licence
License-Adoc:
extends: .license-asciidoc
variables:
BOM_FILE: build/reports/bom.json

View File

@ -1,23 +0,0 @@
stages:
- bom
- asciidoc
License-Bom:
image: maven:3-jdk-11
stage: bom
script:
- mvn cyclonedx:makeBom
artifacts:
when: always
paths:
- target/bom.json
license-asciidoc:
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-license-tools
stage: asciidoc
script:
- licenseBom2Adoc --bom target/bom.json --adoc target/licenses.adoc
artifacts:
when: always
paths:
- target/licenses.adoc

View File

@ -1,6 +1,6 @@
.gradle-licence:
.gradle-licence-bom:
image: $GRADLE_IMAGE
stage: post-process
stage: build
script:
- "cd $BACKEND_DIR"
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS"

View File

@ -0,0 +1,10 @@
.maven-licence-bom:
image: $MAVEN_IMAGE
stage: build
script:
- "cd $BACKEND_DIR"
- mvn cyclonedx:makeBom
artifacts:
when: always
paths:
- "$BACKEND_DIR/target/bom.json"

View File

@ -6,9 +6,9 @@
LICENSE_FILE: licenses.adoc
script:
- "cd $BACKEND_DIR"
- licenseBom2Adoc --bom $BACKEND_DIR/$BOM_FILE --adoc $LICENSE_FILE
- licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_FILE
artifacts:
when: always
expire_in: 2 weeks
paths:
- $LICENSE_ADOC_FILE
- $LICENSE_FILE

View File

@ -1,11 +0,0 @@
.license-license:
stage: verify
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_REF_NAME =~ "RELEASE"
- if: $CI_COMMIT_REF_NAME == "Templates2.0"
- when: never
needs: []
trigger:
include: license.gitlab-ci.yml
strategy: depend