Merge branch 'feat/tbe_verschiedenes' into 'master'
fix(npm-build): Code führt zu Fehler (s.u.), daher erstmal entfernt See merge request gilden/ci/gitlab-ci-templates!86
This commit is contained in:
commit
a006f54e99
@ -54,7 +54,7 @@ variables:
|
|||||||
description: "Additional options that are passed to gradle for faster/stable execution"
|
description: "Additional options that are passed to gradle for faster/stable execution"
|
||||||
|
|
||||||
GRADLE_IMAGE:
|
GRADLE_IMAGE:
|
||||||
value: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-java-maven-base-image:java11-maven3.8.3_latest
|
value: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-java-maven-base-image:java11-maven3.8.5
|
||||||
description: "Default Image to use in Gradle Jobs"
|
description: "Default Image to use in Gradle Jobs"
|
||||||
# Currently, we use the Maven image and use the Gradle Wrapper. This is slower but more compatible to your gradle scripts.
|
# Currently, we use the Maven image and use the Gradle Wrapper. This is slower but more compatible to your gradle scripts.
|
||||||
# Please Update your Gradle Wrapper from time to time. Use Renovate to automat that task.
|
# Please Update your Gradle Wrapper from time to time. Use Renovate to automat that task.
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
variables:
|
variables:
|
||||||
OUTPUT_DIR: public
|
OUTPUT_DIR: public
|
||||||
script:
|
script:
|
||||||
|
- unset GRADLE_USER_HOME
|
||||||
- publish
|
- publish
|
||||||
artifacts:
|
artifacts:
|
||||||
paths: [ public/ ]
|
paths: [ public/ ]
|
||||||
|
|||||||
@ -14,4 +14,8 @@ include:
|
|||||||
cd $BACKEND_DIR
|
cd $BACKEND_DIR
|
||||||
fi
|
fi
|
||||||
- ./gradlew liquibase:update liquibase:diff $GRADLE_CLI_OPTS $GRADLE_EXTRA_OPTS
|
- ./gradlew liquibase:update liquibase:diff $GRADLE_CLI_OPTS $GRADLE_EXTRA_OPTS
|
||||||
|
artifacts:
|
||||||
|
when: on_failure
|
||||||
|
expire_in: 2 weeks
|
||||||
|
paths:
|
||||||
|
- '**/build/db-diff.xml'
|
||||||
|
|||||||
@ -18,4 +18,4 @@ include:
|
|||||||
when: on_failure
|
when: on_failure
|
||||||
expire_in: 2 weeks
|
expire_in: 2 weeks
|
||||||
paths:
|
paths:
|
||||||
- $BACKEND_DIR/target/db-diff.xml
|
- '**/target/db-diff.xml'
|
||||||
@ -8,9 +8,15 @@
|
|||||||
INVALID_LICENSE_ADOC_FILE: invalid-licenses.adoc
|
INVALID_LICENSE_ADOC_FILE: invalid-licenses.adoc
|
||||||
NUMBER_OF_ALLOWED_FAILURES: 0
|
NUMBER_OF_ALLOWED_FAILURES: 0
|
||||||
script:
|
script:
|
||||||
|
# If bom-file does not exist, search for it in default-maven directory
|
||||||
- >
|
- >
|
||||||
if [ "$BACKEND_DIR" != "" ]; then
|
if [[ ! -f "$BOM_FILE" && -f "$BACKEND_DIR/target/bom.json" ]]; then
|
||||||
cd $BACKEND_DIR
|
export BOM_FILE=$BACKEND_DIR/target/bom.json
|
||||||
|
fi
|
||||||
|
# If bom-file does not exist, search for it in default-gradle directory
|
||||||
|
- >
|
||||||
|
if [[ ! -f "$BOM_FILE" && -f "$BACKEND_DIR/build/reports/bom.json" ]]; then
|
||||||
|
export BOM_FILE=$BACKEND_DIR/build/reports/bom.json
|
||||||
fi
|
fi
|
||||||
- export NUMBER_OF_INVALID_LICENSES=0
|
- export NUMBER_OF_INVALID_LICENSES=0
|
||||||
- export INVALID_BOM_FILE=invalid-bom.json
|
- export INVALID_BOM_FILE=invalid-bom.json
|
||||||
|
|||||||
@ -8,11 +8,6 @@
|
|||||||
if [ "$FRONTEND_DIR" != "" ]; then
|
if [ "$FRONTEND_DIR" != "" ]; then
|
||||||
cd $FRONTEND_DIR
|
cd $FRONTEND_DIR
|
||||||
fi
|
fi
|
||||||
# Requires npm > 8.X
|
|
||||||
- >
|
|
||||||
if [ "$CI_COMMIT_TAG" != "" ]; then
|
|
||||||
npm --no-git-tag-version version from-git
|
|
||||||
fi
|
|
||||||
script:
|
script:
|
||||||
- npm run ci:build
|
- npm run ci:build
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
@ -21,9 +21,12 @@
|
|||||||
"-Dsonar.login=$SONAR_TOKEN"
|
"-Dsonar.login=$SONAR_TOKEN"
|
||||||
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
||||||
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
||||||
|
"-Dsonar.projectDescription=$CI_PROJECT_DESCRIPTION"
|
||||||
|
"-Dsonar.projectVersion=$CI_COMMIT_SHORT_SHA"
|
||||||
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
||||||
"-Dsonar.qualitygate.wait=$SONAR_QUALITYGATE_WAIT"
|
"-Dsonar.qualitygate.wait=$SONAR_QUALITYGATE_WAIT"
|
||||||
"-Dsonar.qualitygate.timeout=$SONAR_QUALITYGATE_TIMEOUT"
|
"-Dsonar.qualitygate.timeout=$SONAR_QUALITYGATE_TIMEOUT"
|
||||||
|
"-Dsonar.links.scm=$CI_PROJECT_URL"
|
||||||
|
|
||||||
.sonar-gradle:
|
.sonar-gradle:
|
||||||
extends: .sonar-template-common
|
extends: .sonar-template-common
|
||||||
@ -38,6 +41,9 @@
|
|||||||
"-Dsonar.login=$SONAR_TOKEN"
|
"-Dsonar.login=$SONAR_TOKEN"
|
||||||
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
||||||
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
||||||
|
"-Dsonar.projectDescription=$CI_PROJECT_DESCRIPTION"
|
||||||
|
"-Dsonar.projectVersion=$CI_COMMIT_SHORT_SHA"
|
||||||
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
||||||
"-Dsonar.qualitygate.wait=$SONAR_QUALITYGATE_WAIT"
|
"-Dsonar.qualitygate.wait=$SONAR_QUALITYGATE_WAIT"
|
||||||
"-Dsonar.qualitygate.timeout=$SONAR_QUALITYGATE_TIMEOUT"
|
"-Dsonar.qualitygate.timeout=$SONAR_QUALITYGATE_TIMEOUT"
|
||||||
|
"-Dsonar.links.scm=$CI_PROJECT_URL"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user