chore(Maven): Fix CD into backend

This commit is contained in:
Marcel Feix 2022-07-05 15:22:07 +02:00
parent 71cb005978
commit c874700d02
No known key found for this signature in database
GPG Key ID: 04D016E104A25F03
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,6 @@
cd $BACKEND_DIR
fi
script:
- "cd $BACKEND_DIR"
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS $GRADLE_EXTRA_OPTS"
needs: []
artifacts:

View File

@ -8,7 +8,10 @@
INVALID_LICENSE_ADOC_FILE: invalid-licenses.adoc
NUMBER_OF_ALLOWED_FAILURES: 0
script:
- "cd $BACKEND_DIR"
- >
if [ "$BACKEND_DIR" != "" ]; then
cd $BACKEND_DIR
fi
- export NUMBER_OF_INVALID_LICENSES=0
- export INVALID_BOM_FILE=invalid-bom.json
- licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_ADOC_FILE