diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-14 13:52:25 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-15 16:25:49 +0100 |
commit | 76bba5972cfa6d6272a73cbdf56a8705419c55c8 (patch) | |
tree | 495db98e50d49f8170896df6a4577a8e480866d0 | |
parent | 5ecde41cf85eeeaa1be8826d8581d6797154c517 (diff) | |
download | National_eIDAS_Gateway-76bba5972cfa6d6272a73cbdf56a8705419c55c8.tar.gz National_eIDAS_Gateway-76bba5972cfa6d6272a73cbdf56a8705419c55c8.tar.bz2 National_eIDAS_Gateway-76bba5972cfa6d6272a73cbdf56a8705419c55c8.zip |
fix wrong release-package path in GitLab CI configuration
-rw-r--r-- | .gitlab-ci.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4009365f..17655aa5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,8 @@ variables: GIT_DEPTH: "2" SECURE_LOG_LEVEL: "debug" JACOCO_CSV_LOCATION: '${CI_PROJECT_DIR}/build_reporting/target/site/jacoco-aggregate-ut/jacoco.csv' + JACOCO_XML_LOCATION: '${CI_PROJECT_DIR}/build_reporting/target/site/jacoco-aggregate-ut/jacoco.xml' + PROJECT_RELEASE_PACKAGE: '${CI_PROJECT_DIR}/target/*-dist.zip' include: - template: Dependency-Scanning.gitlab-ci.yml @@ -40,7 +42,8 @@ assemble: reports: junit: "**/target/surefire-reports/TEST-*.xml" paths: - - target/jacoco-report/jacoco.xml + - $JACOCO_CSV_LOCATION + - $JACOCO_XML_LOCATION buildDistributionPackage: @@ -49,8 +52,8 @@ buildDistributionPackage: - tags script: | export VERSION=$(mvn -B help:evaluate -Dexpression=project.version -B | grep -v "\[INFO\]" | grep -Po "\d+\.\d+\.\d+((-\w*)+)?") - echo "Build full package of version $VERSION - mvn $MAVEN_CLI_OPTS verify -s .cisettings.xml -DskipTests + echo "Build full package of version $VERSION" + mvn $MAVEN_CLI_OPTS verify -DskipTests echo "VERSION=$VERSION" >> variables.env artifacts: when: always @@ -58,7 +61,7 @@ buildDistributionPackage: dotenv: variables.env name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" paths: - - target/*.-dist.zip + - $PROJECT_RELEASE_PACKAGE release: stage: release @@ -72,8 +75,8 @@ release: script: | echo "Releasing version $VERSION of $LIB_NAME" echo "Publishing version $VERSION to public EGIZ maven" - mvn $MAVEN_CLI_OPTS deploy -s .cisettings.xml + mvn $MAVEN_CLI_OPTS deploy artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME-EGIZ" paths: - - target/*.-dist.zip + - $PROJECT_RELEASE_PACKAGE |