qoomon / maven-git-versioning-extension

This extension will set project version, based on current Git branch or tag.
GNU General Public License v3.0
305 stars 87 forks source link

Extend GitLab CI support for merge request pipelines #217

Closed a-grasso closed 2 years ago

a-grasso commented 2 years ago

As is, the maven plugin does not solve the git situation correctly when used inside gitlab merge request pipelines.

Reasoning lies within that already supported environment variables CI_COMMIT_BRANCH and CI_COMMIT_TAG are not present in gitlab merge request pipelines.

Therefore, the gitlab merge request pipeline specific environment variable CI_MERGE_REQUEST_SOURCE_BRANCH_NAME must be added when handling the git situation for gitlab ci.

qoomon commented 2 years ago

feel free to try version 9.3.1

a-grasso commented 2 years ago

The fix was tested as of in v7.4.0, worked as it should ;)