ajoberstar / reckon

Infer a project's version from your Git repository.
Apache License 2.0
185 stars 28 forks source link

reckon fails on "Cannot release a final or significant stage without a clean repo" #149

Closed amiryo closed 3 years ago

amiryo commented 3 years ago

Hi , I am using reckon which run in jenkins pipeline. reckon plugin version is '0.13.0' grgit plugin version is '4.1.0' gradle version is '6.6.1'

The plugin is invoked with scope=minor and stage=rc

The issue: plugin fails on dirty repo while repo seems to be clean according to the checks I did:
Running "git status", "git clean --dry-run", "git diff --shortstat" , "" commands before and after invoking reckon plugin. They are all showing clean repo.

Any prompt assistance would be appreciated a lot.

amiryo commented 3 years ago

Hi, can you please advise how to solve the issue ?

Thanks Amir

amiryo commented 3 years ago

I closed the issue by mistake....still open

Thanks Amir

tmeltser commented 3 years ago

Hi, I have also encountered this problem and would be very happy to get some guidenss on the subject.

Tiran.

stephenlawrence commented 3 years ago

You need to have a clean source tree with no uncommitted changes.

amiryo commented 3 years ago

Hi, I found the file that dynamically updated during the build and caused the unclean status Thank you for your support!

On Wed, Jan 6, 2021 at 7:15 PM Stephen J. Lawrence Jr. < notifications@github.com> wrote:

You need to have a clean source tree with no uncommitted changes.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ajoberstar/reckon/issues/149#issuecomment-755436604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHCCYBKVY7GD5NRMPXTWG7DSYSLEXANCNFSM4TQY574Q .

pmorch commented 3 years ago

So this can be closed, then? If so, please close it, amiryo.

amiryo commented 3 years ago

Done