I’m trying to create my first GitLab CI pipeline which will deploy Maven artifact to the GitLab Package Registry following that example.
My question is how can I change artifact name (append to it) during the deployment stage as APP_PACKAGE_SNAPSHOT which I have defined in the init stage as variable
stage: init script: - APP_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) - APP_PACKAGE_NAME=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout) - APP_PACKAGE_SNAPSHOT="SNAPSHOT-$CI_COMMIT_SHORT_SHA"
when pipeline was executed from the develop branch.
Thanks for any help