-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default Versioncreator "VERSION_WITH_BRANCH" changes Release-Version name #789
Comments
hi! |
Hi, |
could you add "git status" command before release step and show me your build output? |
|
I see So as stated in docs:
So just add First class gitlab support PR would be appreciated! You can check @radoslaw-panuszewski PR as inspiration #776 |
I have the overridden branch name in the local gradle.properties echo "release.overriddenBranchName=$CI_COMMIT_REF_NAME" >> $GRADLE_USER_HOME/gradle.properties CI_COMMIT_REF_NAME='v1.20.0' |
if |
I switched to CI_COMMIT_REF_SLUG and it's still the same. |
maybe you could share your whole pipeline file? |
cipipeline.txt |
I've tested gitlab-ci integration, and it works fine, I recommend using the release command just like in the docs or this repo: |
I am not sure if my problem is a bug.
With Version 1.18.0 the default versionCreator changes from simple to VERSION_WITH_BRANCH.
gradle currentVersion on mainbranch is still 1.2.0-SNAPSHOT
Gradle release creates the Tag v1.2.0.
But the gitlab-ci pipeline running on the tagged version, publishs Version 1.2.0-v1.2.0 to maven repository.
It looks like the decorate step is now also being executed for a release
With
scmVersion { versionCreator("simple") }
it works as expected.
The text was updated successfully, but these errors were encountered: