WIP: Draft: Feature/testbomreport #375

Draft
kevin.tumma wants to merge 9 commits from feature/testbomreport into master
2 changed files with 11 additions and 10 deletions

View File

@ -5,19 +5,19 @@ include:
ref: 'main'
file: 'ci-templates/gradle_java.yml'
deploy:
bom:
stage: deploy
tags:
- dind
script:
- echo "Building with gradle version ${BUILDVERSION}"
- gradle -Pversion=${BUILDVERSION} publish
- gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${BUILDVERSION}
- echo "BUILDVERSION=$BUILDVERSION" >> version.env
- gradle cyclonedxBom
- echo "Publishing the generated BOM"
- pwd
- ls -la
- ls persistence-service-v1/persistence-service-server-v1/build/reports
artifacts:
reports:
dotenv: version.env
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^release/
- if: $CI_COMMIT_TAG
cyclonedx:
- persistence-service-v1/persistence-service-server-v1/build/reports/bom.json
paths:
- persistence-service-v1/persistence-service-server-v1/build/reports/bom.json

View File

@ -7,6 +7,7 @@ plugins {
id("io.spring.dependency-management") version "1.1.3"
id("org.sonarqube") version "4.4.1.3373"
id("io.freefair.lombok") version "8.4"
id ("org.cyclonedx.bom") version "1.8.2"
}
configurations {