diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3fa8d52..2a68590 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,11 +23,11 @@ check_confluence_validity:
INPUT_FILE: "document.adoc"
IMAGES_DIR: images
CREATE_SUB_PAGES: "false"
- PAGE_PREFIX: "[CI/CD] - [TMPL] - "
+ PAGE_PREFIX: "[CI/CD] - "
CONFLUENCE_SPACE: RANDI
TEXT_GENERATED_HINT: 'This is a generated page, do not edit! All changes must happen in the Repository
.'
- FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
+ FILE_INPUT: "index.html,107524048,CI Templates"
extends: .check_confluence_validity-template
pages:
@@ -36,11 +36,11 @@ pages:
INPUT_FILE: "document.adoc"
IMAGES_DIR: images
CREATE_SUB_PAGES: "false"
- PAGE_PREFIX: "[CI/CD] - [TMPL] - "
+ PAGE_PREFIX: "[CI/CD] - "
CONFLUENCE_SPACE: RANDI
TEXT_GENERATED_HINT: 'This is a generated page, do not edit! All changes must happen in the Repository
.'
- FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
+ FILE_INPUT: "index.html,107524048,CI Templates"
extends: .pages-template
.release-template:
diff --git a/container-publish.gitlab-ci.yml b/container-publish.gitlab-ci.yml
index 7bd7374..b3973f9 100644
--- a/container-publish.gitlab-ci.yml
+++ b/container-publish.gitlab-ci.yml
@@ -46,7 +46,7 @@
EXTRA_ARGS: $GRADLE_EXTRA_ARGS
script:
- echo $PARSED_VERSION
- - ./gradlew assemble jib $EXTRA_ARGS
+ - ./gradlew assemble jib $GRADLE_CLI_OPTS $EXTRA_ARGS
"-DskipTests"
"-Djib.to.image=$DOCKER_REGISTRY:$PARSED_VERSION""
"-Djib.to.auth.username=$DOCKER_REGISTRY_USER"
diff --git a/container-scan.gitlab-ci.yml b/container-scan.gitlab-ci.yml
index b4c9330..a08a630 100644
--- a/container-scan.gitlab-ci.yml
+++ b/container-scan.gitlab-ci.yml
@@ -2,7 +2,7 @@
image: $MAVEN_IMAGE
stage: test
variables:
- TRIVY_VERSION: 0.24.1
+ TRIVY_VERSION: 0.24.2
EXITCODE: 1
TRIVY_EXTRA_ARGS: "--no-progress --ignore-unfixed"
before_script:
@@ -23,7 +23,7 @@
image: $GRADLE_IMAGE
stage: test
variables:
- TRIVY_VERSION: 0.24.1
+ TRIVY_VERSION: 0.24.2
EXITCODE: 1
PROJECT_DIR: $CI_PROJECT_DIR/build
TRIVY_EXTRA_ARGS: "--no-progress --ignore-unfixed"
@@ -32,7 +32,7 @@
- curl -L "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" --output trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz
- tar zxvf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz
script:
- - ./gradlew jibBuildTar -DskipTests
+ - ./gradlew $GRADLE_CLI_OPTS jibBuildTar -DskipTests
- ./trivy --cache-dir .trivycache/ image --timeout 15m $TRIVY_EXTRA_ARGS --exit-code 0 --severity HIGH,CRITICAL --format template --template "@contrib/junit.tpl" -o junit-report.xml --input $PROJECT_DIR/jib-image.tar
- ./trivy --cache-dir .trivycache/ image --timeout 15m $TRIVY_EXTRA_ARGS --exit-code $EXITCODE --severity HIGH,CRITICAL --input $PROJECT_DIR/jib-image.tar
cache:
@@ -48,7 +48,7 @@
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
variables:
- TRIVY_VERSION: 0.24.1
+ TRIVY_VERSION: 0.24.2
PROJECT_DIR: $CI_PROJECT_DIR
DOCKERFILE_LOCATION: $CI_PROJECT_DIR/Dockerfile
CONTEXT_LOCATION: $CI_PROJECT_DIR
diff --git a/documentation/chapters/templates/container-publish.adoc b/documentation/chapters/templates/container-publish.adoc
index f29f243..e39c3c0 100644
--- a/documentation/chapters/templates/container-publish.adoc
+++ b/documentation/chapters/templates/container-publish.adoc
@@ -19,6 +19,7 @@ Falls das Projekt aus mehreren Poms besteht, kann `before_script:` benutzt werde
|EXTRA_ARGS | Weitere Argumente die an den jeweiligen Job gegeben werden sollen. | ""
|USE_VERSIONFILE | Wenn true, dann wird zur Versionierung das ./version file aus dem set-version tool verwendet | "false"
|ARTIFACT | Der Name des Versionfiles aus dem set-version tool | "version"
+|GRADLE_CLI_OPTS | Zusätzliche CLI Opts für Gradle | ""
|===
.container-publish
diff --git a/documentation/chapters/templates/container-scan.adoc b/documentation/chapters/templates/container-scan.adoc
index 4baaabe..494792c 100644
--- a/documentation/chapters/templates/container-scan.adoc
+++ b/documentation/chapters/templates/container-scan.adoc
@@ -22,6 +22,7 @@ Benutzte `allow_failure: true` damit die CI weiter läuft aber ein Failure angez
Wenn 0 benutzt wird, läuft die CI weiter.
Benutzte `allow_failure: true` damit die CI weiter läuft aber ein Failure angezeigt wird.
| -
+|GRADLE_CLI_OPTS | Zusätzliche CLI Opts für Gradle | ""
|===
.container scan template
diff --git a/documentation/chapters/templates/gradle-build-template.adoc b/documentation/chapters/templates/gradle-build-template.adoc
index 0f45d65..11ccecf 100644
--- a/documentation/chapters/templates/gradle-build-template.adoc
+++ b/documentation/chapters/templates/gradle-build-template.adoc
@@ -8,6 +8,7 @@ Die Ergebnisse werden als Artifact gespeichert.
.Variables
|===
|Name |Description | Default Value
+|GRADLE_CLI_OPTS | Zusätzliche CLI Opts für Gradle | ""
|===
.gradle-build-template
diff --git a/documentation/chapters/templates/gradle-test-template.adoc b/documentation/chapters/templates/gradle-test-template.adoc
index 85e353f..b609da1 100644
--- a/documentation/chapters/templates/gradle-test-template.adoc
+++ b/documentation/chapters/templates/gradle-test-template.adoc
@@ -8,6 +8,7 @@ Die Ergebnisse werden als Artifact gespeichert.
.Variables
|===
|Name |Description | Default Value
+|GRADLE_CLI_OPTS | Zusätzliche CLI Opts für Gradle | ""
|===
.gradle-test-template
diff --git a/documentation/chapters/templates/tool-sonar7.adoc b/documentation/chapters/templates/tool-sonar7.adoc
index c9e7651..f838784 100644
--- a/documentation/chapters/templates/tool-sonar7.adoc
+++ b/documentation/chapters/templates/tool-sonar7.adoc
@@ -13,11 +13,14 @@ Mehr Details zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-s
|SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | ""
|SONAR_PROJECT_NAME | Der Sonar-Projekt-Name. | "" (Es wird dann standardmäßig der Maven project.name verwendet)
|SONAR_EXCLUSIONS | Von Sonar auszuschließende Bereiche | **/target/**,**/src/test/**
-
+|GRADLE_CLI_OPTS | Zusätzliche CLI Opts für Gradle | ""
|===
-TIP: Der SONAR_TOKEN String kann über den persönlichen User Bereich in Sonar unter dem Tab _Security_ erzeugt werden. Ein technischer User ist aktuell nicht möglich. Das Token wird ausschließlich dafür benötigt, wenn der Sonar Buildbreaker über die Pipeline aktiviert wird (_sonar.buildbreaker.skip=true_). Wenn der Build nicht gebrochen werden soll, kann es weggelassen werden.
+TIP: Der SONAR_TOKEN String kann über den persönlichen User Bereich in Sonar unter dem Tab _Security_ erzeugt werden.
+Ein technischer User ist aktuell nicht möglich.
+Das Token wird ausschließlich dafür benötigt, wenn der Sonar Buildbreaker über die Pipeline aktiviert wird (_sonar.buildbreaker.skip=true_).
+Wenn der Build nicht gebrochen werden soll, kann es weggelassen werden.
.sonar-template
[source,yaml]
diff --git a/gradle-test-template.gitlab-ci.yml b/gradle-test-template.gitlab-ci.yml
index 9115033..ca83ff4 100644
--- a/gradle-test-template.gitlab-ci.yml
+++ b/gradle-test-template.gitlab-ci.yml
@@ -2,7 +2,7 @@
image: $GRADLE_IMAGE
stage: test
script:
- - "./gradlew --build-cache test"
+ - "./gradlew --build-cache test $GRADLE_CLI_OPTS"
artifacts:
expire_in: 2 weeks
reports:
diff --git a/tool-sonar7.gitlab-ci.yml b/tool-sonar7.gitlab-ci.yml
index 2cd5c00..748ed22 100644
--- a/tool-sonar7.gitlab-ci.yml
+++ b/tool-sonar7.gitlab-ci.yml
@@ -27,7 +27,7 @@
extends: .sonar-template-common
image: $GRADLE_IMAGE
script:
- - ./gradlew $GRADLE_OPTS sonarqube
+ - ./gradlew $GRADLE_OPTS sonarqube $GRADLE_CLI_OPTS
"-Dsonar.host.url=$SONAR_HOST_URL"
"-Dsonar.login=$SONAR_TOKEN"
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"