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