-
Notifications
You must be signed in to change notification settings - Fork 56
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
Different Version Derived on Gitlab vs Local #233
Comments
I'm running into the same thing, though it is intermittent. About 25% of the time nebula-release-plugin chooses to increment the minor version instead of the patch. This only happens in CI. Here are some relevant log lines from the
I'm happy to provide more logs. I'm using nebula-release-plugin 17.2.2 with Gradle 8.6 and JDK21. |
I found that if I force Gitlab to clone (don't reuse existing build directories) then I don't see the problem. In Gitlabese, that's |
Nebula release plugin version
16.1.0
.Gradle version
7.5.1
.Our project is on branch
release/2.0.x
, branched from tagv2.0.0
.When I run
./gradlew publish final
from my local machine I get:Inferred project: fun-project, version: 2.0.1
This is the correct and expected version.
In Gitlab, I have the following settings:
This, according to the Gitlab documentation, clones the full depth of the repo, and fetches tags.
And the tags are getting pulled because I can see this in the logs:
As can be seen, the tag
v2.0.0
comes in with the clone. But yet, when thefinal
task runs on Gitlab, it derives the incorrect version:This is the incorrect version per the previous tag and the current branch name.
The text was updated successfully, but these errors were encountered: