feat(exx-Pipeline): change license workflow
This commit is contained in:
parent
352f1bf910
commit
930166490b
@ -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
|
|
||||||
@ -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
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
.gradle-licence:
|
.gradle-licence-bom:
|
||||||
image: $GRADLE_IMAGE
|
image: $GRADLE_IMAGE
|
||||||
stage: post-process
|
stage: build
|
||||||
script:
|
script:
|
||||||
- "cd $BACKEND_DIR"
|
- "cd $BACKEND_DIR"
|
||||||
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS"
|
- "./gradlew --build-cache cyclonedxBom $GRADLE_CLI_OPTS"
|
||||||
|
|||||||
10
templates/java/maven/maven-license.gitlab-ci.yml
Normal file
10
templates/java/maven/maven-license.gitlab-ci.yml
Normal 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"
|
||||||
@ -6,9 +6,9 @@
|
|||||||
LICENSE_FILE: licenses.adoc
|
LICENSE_FILE: licenses.adoc
|
||||||
script:
|
script:
|
||||||
- "cd $BACKEND_DIR"
|
- "cd $BACKEND_DIR"
|
||||||
- licenseBom2Adoc --bom $BACKEND_DIR/$BOM_FILE --adoc $LICENSE_FILE
|
- licenseBom2Adoc --bom $BOM_FILE --adoc $LICENSE_FILE
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
expire_in: 2 weeks
|
expire_in: 2 weeks
|
||||||
paths:
|
paths:
|
||||||
- $LICENSE_ADOC_FILE
|
- $LICENSE_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
|
|
||||||
Loading…
Reference in New Issue
Block a user