diff --git a/documentation/chapters/templates/push-tag-and-version-template.adoc b/documentation/chapters/templates/push-tag-and-version-template.adoc index 970bc06..10f06a8 100644 --- a/documentation/chapters/templates/push-tag-and-version-template.adoc +++ b/documentation/chapters/templates/push-tag-and-version-template.adoc @@ -11,6 +11,7 @@ For more details: https://gitlab.exxcellent.de/gilden/ci/exxcellent-ssh-tool[Gil |Name |Description | Default Value |ARTIFACT | the name of the artifact the new version is written to by the `set-version` job |"version" |MVN_VERSION | defines if the `mvn version:set` command will be run | "true" +|MVN_EXTRA_ARGS | sets extra args which will be added behind the `mvn` command | "" |=== .push-tag-and-version-template diff --git a/push-tag-and-version-template.gitlab-ci.yml b/push-tag-and-version-template.gitlab-ci.yml index de20c53..0697a93 100644 --- a/push-tag-and-version-template.gitlab-ci.yml +++ b/push-tag-and-version-template.gitlab-ci.yml @@ -4,6 +4,7 @@ variables: ARTIFACT: "version" MVN_VERSION: "false" + MVN_EXTRA_ARGS: "" before_script: - setup-ssh script: @@ -15,6 +16,6 @@ - curl "https://img.shields.io/static/v1?label=Version-&message=$VERSION&color=green" -o $ARTIFACT.svg - > if [ "${MVN_VERSION}" == "true" ]; then - mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false + mvn $MVN_EXTRA_ARGS versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false fi - push $VERSION