From a628910a43fd2c14c9bfc6e8a4d0a5746a87f2e5 Mon Sep 17 00:00:00 2001 From: Wolfram Gulde Date: Tue, 7 Dec 2021 12:14:44 +0100 Subject: [PATCH 1/2] feat(Variables): add mvn extra args --- push-tag-and-version-template.gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 07b4040ac6cfe9d9739b089a8814c1bf20f210a3 Mon Sep 17 00:00:00 2001 From: Wolfram Gulde Date: Tue, 7 Dec 2021 13:56:50 +0100 Subject: [PATCH 2/2] docs(Variables): add mvn extra args --- .../chapters/templates/push-tag-and-version-template.adoc | 1 + 1 file changed, 1 insertion(+) 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