Skip to content

Wrong version of git.commit.id.describe #262

Description

@Enigo

We use 2.2.0 plugin version with "generateGitPropertiesFile" property set to "true" and recently faced a really weird situation. I'll do my best to describe it correctly.
The main problem is that git.commit.id.describe field is wrong in generated properties file. I can tell that because "git describe" command returns different version, e.g.
git describe --> 16.2.1.1-SNAPSHOT
but in file:

git.closest.tag.name=16.1.1.2-SNAPSHOT
git.commit.id.describe-short=16.1.1.2-SNAPSHOT-194
git.build.version=16.2.1.1-SNAPSHOT
git.commit.id.describe=16.1.1.2-SNAPSHOT-194-g1bea26a
git.commit.id=1bea26ad9a3187bf64d28a22aa5a74880a292e1b

So, how that happened? We perform project releases via Jenkins and the problem was caused by some merge conflicts because of versions in different branches.
We did some changes in branch for 16.1 release (with version 16.1.1.2) and then merge that branch into current master where version was 16.2.1.1. So, the merge conflict happened and resolved but after that the problem above appeared. When I checkout to the commit prior to the merge everything works just fine. But on merge-commit and after "git.commit.id.describe" is wrong.
Hope I explained it clear) Tell me if you need more details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions