Skip to content
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

Open
EarthCitizen opened this issue Dec 3, 2022 · 0 comments
Open

Different Version Derived on Gitlab vs Local #233

EarthCitizen opened this issue Dec 3, 2022 · 0 comments

Comments

@EarthCitizen
Copy link

Nebula release plugin version 16.1.0.
Gradle version 7.5.1.

Our project is on branch release/2.0.x, branched from tag v2.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:

GIT_FETCH_EXTRA_FLAGS: --tags --prune --prune-tags
GIT_DEPTH: "0"

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:

 * [new branch]      develop               -> origin/develop
 * [new branch]      master                -> origin/master
 * [new branch]      release/2.0.x         -> origin/release/2.0.x
 * [new tag]         v2.0.0                -> v2.0.0
 * [new tag]         v2.0.0-SNAPSHOT       -> v2.0.0-SNAPSHOT

As can be seen, the tag v2.0.0 comes in with the clone. But yet, when the final task runs on Gitlab, it derives the incorrect version:

Inferred project: fun-project, version: 2.1.0

This is the incorrect version per the previous tag and the current branch name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant