From a628910a43fd2c14c9bfc6e8a4d0a5746a87f2e5 Mon Sep 17 00:00:00 2001 From: Wolfram Gulde Date: Tue, 7 Dec 2021 12:14:44 +0100 Subject: [PATCH] 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