feat(exx-Pipeline): add needs for lice

This commit is contained in:
Wolfram Gulde 2022-05-10 15:00:26 +02:00 committed by Marcel Feix
parent 9d963bc5c4
commit b433643c85
No known key found for this signature in database
GPG Key ID: 04D016E104A25F03
2 changed files with 6 additions and 4 deletions

View File

@ -1,10 +1,10 @@
.gradle-licence: .gradle-licence:
image: $GRADLE_IMAGE image: $GRADLE_IMAGE
stage: post-process stage: post-process
before_script:
- "cd $BACKEND_DIR"
script: script:
- "cd $BACKEND_DIR"
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS" - "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS"
needs: []
artifacts: artifacts:
expire_in: 2 weeks expire_in: 2 weeks
reports: reports:

View File

@ -4,10 +4,12 @@
variables: variables:
BOM_FILE: bom.json BOM_FILE: bom.json
LICENSE_FILE: licenses.adoc LICENSE_FILE: licenses.adoc
before_script:
- "cd $BACKEND_DIR"
script: script:
- "cd $BACKEND_DIR"
- licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_ADOC_FILE - licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_ADOC_FILE
needs:
- job: "License-Bom"
artifacts: true
artifacts: artifacts:
when: always when: always
expire_in: 2 weeks expire_in: 2 weeks