Skip to content

ReleaseFailedException on concurrent attempts to increment version #715

Open
@jonathanmash

Description

@jonathanmash

In the event that two separate processes attempt to increment the version for a module at the same time, then the following exception is thrown in one of them.

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':module:release'.
pl.allegro.tech.build.axion.release.ReleaseFailedException (no error message)
Try:
Run with --stacktrace option to get the stack trace.
Run with --scan to get full insights.
Get more help at https://help.gradle.org/

This can be worked around by performing a git fetch --tags and then retrying the release task which, on the second attempt then concludes that there is nothing to be released as the other process has already tagged this commit successfully.

Presumably the issue here is a rejection by the git repository of the push. It would be good if such a rejection is encountered if the axion-release-plugin could automatically perform a fetch and re-attempt the push itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions